Custom selectbox
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 - 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;
}
Developer | Hamza Erbay |
Username | hamzaerbay |
Uploaded | August 11, 2022 |
Rating | 3 |
Size | 2,654 Kb |
Views | 38,456 |
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!
Name | Size |
Timeline Demo | 6,599 Kb |
React Sample | 3,500 Kb |
Badge | 2,203 Kb |
Flexbox mixins with sass | 2,610 Kb |
Quickviewbox | 6,926 Kb |
Udemy logo loader | 4,016 Kb |
New course cards with BEM | 5,666 Kb |
CSS3 Hover Animation | 2,807 Kb |
Tooltip | 2,013 Kb |
Old Course Cards | 4,311 Kb |
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!
Name | Username | Size |
Multiple jCarousel | Pafnuty | 2,461 Kb |
The Fly | GianlucaGuarini | 3,405 Kb |
Content Changer | Cliffpyles | 4,538 Kb |
A Pen by Jonas Bjork | Jonasbjork | 3,115 Kb |
A simple log in form made with css | Mayurelbhar | 2,160 Kb |
Animating characters with jQuery | 042 | 2,776 Kb |
Price Comparison Table | Orrinward | 3,459 Kb |
Swiftype Lower Third | Zumwalt | 4,796 Kb |
CSS3 Button Examples | Volusion | 3,377 Kb |
Drop Cap | Gsaiki | 1,571 Kb |
Surf anonymously, prevent hackers from acquiring your IP address, send anonymous email, and encrypt your Internet connection. High speed, ultra secure, and easy to use. Instant setup. Hide Your IP Now!