Floaty Label
How do I make an floaty label?
What is a floaty label? How do you make a floaty label? This script and codes were developed by Tim on 13 October 2022, Thursday.
Floaty Label - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Floaty Label</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <fieldset class="form-columns-2"> <div class="hs_firstname field hs-form-field"> <label placeholder="Enter your First Name">First Name<span class="hs-form-required"> * </span> </label> <div class="hs-field-desc" style="display: none;"></div> <div class="input"> <input class="hs-input" type="text" required="required" name="firstname" value="" placeholder="Usain"> </div> </div> <div class="hs_lastname field hs-form-field"> <label placeholder="Enter your Last Name">Last Name<span class="hs-form-required"> * </span> </label> <div class="hs-field-desc" style="display: none;"></div> <div class="input"> <input class="hs-input" type="text" required="required" name="lastname" value="" placeholder="Bolt"> </div> </div>
</fieldset>
<fieldset class="form-columns-2"> <div class="hs_firstname field hs-form-field"> <label placeholder="Enter your First Name">Short Label<span class="hs-form-required"> * </span> </label> <div class="hs-field-desc" style="display: none;"></div> <div class="input"> <input class="hs-input" type="text" required="required" name="firstname" value="" placeholder="Usain"> </div> </div> <div class="hs_lastname field hs-form-field"> <label placeholder="Enter your Last Name">Super long label that never ends<span class="hs-form-required"> * </span> </label> <div class="hs-field-desc" style="display: none;"></div> <div class="input"> <input class="hs-input" type="text" required="required" name="lastname" value="" placeholder="Bolt"> </div> </div>
</fieldset>
</body>
</html>
Floaty Label - Script Codes CSS Codes
label { display: inline-block; margin-bottom: -10px; position: relative; font-size: 14px; top: 5px; color: rgba(255, 255, 255, 0.9); width: 100%; font-weight: 100;
}
label:before { content: ""; margin-right: 7px; margin-left: 2px; display: inline-block; width: 10px; height: 2px; border-bottom: solid white 2px; position: relative; top: -3px;
}
label:after { content: ""; display: inline-block; margin-left: 7px; width: 500px; height: 2px; border-bottom: solid white 2px; position: absolute; top: 6px;
}
.hs-input { margin-top: -4px; padding: 10px 20px; width: 300px; border: solid white 2px; border-top: none; display: block; background-color: transparent; font-size: 14px; color: white; font-weight: 100; outline: none;
}
.hs-form-field { position: relative; overflow: hidden; display: inline-block; margin-right: 20px;
}
body { background: url("https://hd.unsplash.com/photo-1456305951335-bb8134aeab8a") no-repeat center center fixed; background-size: cover; font-family: sans-serif;
}
fieldset { border: none;
}
Developer | Tim |
Username | tym0 |
Uploaded | October 13, 2022 |
Rating | 3 |
Size | 2,611 Kb |
Views | 30,360 |
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 |
Animated Hamburger Menu Button 1 | 2,701 Kb |
Animated Checkmark | 2,814 Kb |
Material New Tab Page | 2,188 Kb |
Scroll Down Animation | 2,218 Kb |
Animated Hamburger Menu Button 2 | 2,249 Kb |
A Pen by Tim | 1,811 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 |
404 Error Page | WebSonick | 3,203 Kb |
Iron Man SVG Loading Animation | Andythayer | 3,069 Kb |
Sencha Touch 2.3.1 Basic Grid Example | Trozdol | 2,770 Kb |
Weird glowy CSS3 game | Toneworm | 3,684 Kb |
Comparison of Roboto Draft vs Roboto | Jxnblk | 2,880 Kb |
Modal Dialog | Gigaleet | 2,251 Kb |
Slide out Menu | Rbiggs | 4,936 Kb |
Nested flexbox layout for library catalog | Boycetrus | 3,271 Kb |
CSS Bot Confusion | Jpod | 3,456 Kb |
Mini Profile | Frytyler | 3,828 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!