Custom selectbox

Developer
Size
2,654 Kb
Views
38,456

How do I make an custom selectbox?

What is a custom selectbox? How do you make a custom selectbox? This script and codes were developed by Hamza Erbay on 11 August 2022, Thursday.

Custom selectbox Previews

Custom selectbox - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>custom selectbox</title> <link rel='stylesheet prefetch' href='https://www.udemy.com/staticx/udemy/js/webpack/entry-main.b196ec6854f32f3039bf52aa2fc66cb1.css'> <link rel="stylesheet" href="css/style.css">
</head>
<body> <section class="col-xs-6 mt30"> <div class="custom-select form-group-floating-label"> <div class="custom-select__container"> <select name="" id="country" class="form-control"> <option value="" disabled>Country</option> <option value="value1">Value 1</option> <option value="value2">Value 2</option> <option value="value3">Value 3</option> </select> </div> <label for="country" class="control-label"> Country </label> </div>
</section>
<section class="col-xs-6 mt30"> <div class="custom-select form-group-floating-label"> <div class="custom-select__container is-empty"> <select name="" id="country" class="form-control"> <option value="" disabled selected>Country</option> <option value="value1">Value 1</option> <option value="value2">Value 2</option> <option value="value3">Value 3</option> </select> </div> <label for="country" class="control-label"> Country </label> </div>
</section>
<!-- standard -->
<section class="col-xs-6 mt30"> <div class="custom-select"> <label for="country" class="control-label"> Country </label> <div class="custom-select__container"> <select name="" id="country" class="form-control"> <option value="" disabled selected>Country</option> <option value="value1">Value 1</option> <option value="value2">Value 2</option> <option value="value3">Value 3</option> </select> </div> </div>
</section>
<section class="col-xs-6 mt30"> <div class="custom-select has-error"> <label for="country" class="control-label"> Country </label> <div class="custom-select__container"> <select name="" id="country" class="form-control"> <option value="" disabled selected>Country</option> <option value="value1">Value 1</option> <option value="value2">Value 2</option> <option value="value3">Value 3</option> </select> </div> <span class="help-block"> Please double-check your card number. </span> </div>
</section>
</body>
</html>

Custom selectbox - Script Codes CSS Codes

.m_appearance_none { appearance: none !important; -moz-appearance: none !important; -webkit-appearance: none !important;
}
.custom-select { position: relative;
}
.custom-select .form-control { appearance: none !important; -moz-appearance: none !important; -webkit-appearance: none !important; cursor: pointer; position: relative;
}
.custom-select .custom-select__container { position: relative;
}
.custom-select .custom-select__container ~ .control-label { opacity: 1; pointer-events: none;
}
.custom-select .custom-select__container.is-empty .form-control { padding-top: 11px; color: #999999;
}
.custom-select .custom-select__container.is-empty ~ .control-label { opacity: 0; font-size: 15px; top: 15px;
}
.custom-select .custom-select__container:after { font-family: 'UdemyIcons'; content: "\F078"; color: #999999; display: block; position: absolute; top: 50%; line-height: 1; pointer-events: none; font-size: 16px; height: 16px; width: 16px; right: 12px; -webkit-transform: translateY(-50%); transform: translateY(-50%);
}
.custom-select.form-group-floating-label .form-control { padding-top: 18px;
}
Custom selectbox - Script Codes
Custom selectbox - Script Codes
Home Page Home
Developer Hamza Erbay
Username hamzaerbay
Uploaded August 11, 2022
Rating 3
Size 2,654 Kb
Views 38,456
Do you need developer help for Custom selectbox?

Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!

Hamza Erbay (hamzaerbay) Script Codes
Create amazing Facebook ads with AI!

Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!