Styled selectbox
How do I make an styled selectbox?
What is a styled selectbox? How do you make a styled selectbox? This script and codes were developed by Tom Hermans on 09 December 2022, Friday.
Styled selectbox - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Styled selectbox</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <label> <select> <option selected> Select Box </option> <option>Short Option</option> <option>This Is A Longer Option</option> </select>
</label>
</body>
</html>
Styled selectbox - Script Codes CSS Codes
body, html {background:#444; text-align:center; padding:50px 0;}
/* The CSS */
select { padding:8px; margin: 0; -webkit-border-radius:4px; -moz-border-radius:4px; border-radius:4px; -webkit-box-shadow: 0 3px 0 #ccc, 0 -1px #fff inset; -moz-box-shadow: 0 3px 0 #ccc, 0 -1px #fff inset; box-shadow: 0 3px 0 #ccc, 0 -1px #fff inset; background: #f8f8f8; color:#888; border:none; outline:none; display: inline-block; -webkit-appearance:none; -moz-appearance:none; appearance:none; cursor:pointer;
}
/* Targetting Webkit browsers only. FF will show the dropdown arrow with so much padding. */
@media screen and (-webkit-min-device-pixel-ratio:0) { select {padding-right:18px}
}
label {position:relative}
label:after { content:'<>'; font:11px "Consolas", monospace; color:#aaa; -webkit-transform:rotate(90deg); -moz-transform:rotate(90deg); -ms-transform:rotate(90deg); transform:rotate(90deg); right:8px; top:2px; padding:0 0 2px; border-bottom:1px solid #ddd; position:absolute; pointer-events:none;
}
label:before { content:''; right:6px; top:0px; width:20px; height:20px; background:#f8f8f8; position:absolute; pointer-events:none; display:block;
}
Developer | Tom Hermans |
Username | tomhermans |
Uploaded | December 09, 2022 |
Rating | 3 |
Size | 1,901 Kb |
Views | 10,120 |
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 |
Imagemap pure css trial | 2,852 Kb |
Accessibility wai-aria test | 8,599 Kb |
StickyNav | 4,306 Kb |
Simple color ribbon | 1,788 Kb |
Portfolio box | 7,186 Kb |
Text in circle | 2,027 Kb |
Table Row Toggle | 2,829 Kb |
CSS3 Shapes reference | 2,574 Kb |
Tryout | 2,820 Kb |
Media object module | 3,344 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 |
Sexy Social Buttons | Ipiyale | 2,226 Kb |
Gulpfile | Aimhigherwebdesign-amy | 1,765 Kb |
Animated Donut Chart | Jplhomer | 3,808 Kb |
Portfolio Layout Flex | Lahvjal | 3,489 Kb |
Nested table email layout | Massimo-cassandro | 2,355 Kb |
Fellowship of the Ring | Aussieyang | 2,639 Kb |
Starting out with Ember.JS | Cfleschhut | 4,808 Kb |
CSS Dynamic Width Square Div | Elleestcrimi | 2,861 Kb |
A vuejs widget | Chrgl86 | 2,869 Kb |
The CodePen Logo | Kindofone | 4,259 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!