Responsive Form
How do I make an responsive form?
Form folds together on small devices, putting labels on top of the input fields. What is a responsive form? How do you make a responsive form? This script and codes were developed by Tom Hermans on 09 December 2022, Friday.
Responsive Form - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Responsive Form</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <html> <body> <div class="wrapper"> <form id="responsiveform" method ="POST" action ="">
<input type="hidden" name="REQ" value="INQ" />
<div> <label for="Name">Name</label> <div> <input id="Name" type="text" size="40" name="NAM"> </div>
</div>
<div> <label for="Zipcode">Zipcode</label> <div> <input id="Zipcode" type="text" size="4" name="PCD"> </div>
</div>
<div> <label for="City">City </label> <div> <input id="City" type="text" size="40" name="GEM"> </div>
</div>
<div> <label for="Adress">Adress</label> <div> <input id="Adress" type="text" size="40" name="ADR"> </div>
</div>
<div> <label for="BusinessNumber">BusinessNumber</label> <div> <input id="BusinessNumber" type="text" size="21" maxlength="21" name="SUB"> </div>
</div>
<div> <input id="searchform" type="submit" name="SND" value="Search">
</div>
</form> </div> </body>
</html>
</body>
</html>
Responsive Form - Script Codes CSS Codes
#responsiveform, #responsiveform * { -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box;
}
#responsiveform header { margin: 0 0 20px 0;
}
#responsiveform header div { font-size: 90%; color: #999;
}
#responsiveform header h2 { margin: 0 0 5px 0;
}
#responsiveform > div { clear: both; overflow: hidden; padding: 1px; margin: 0 0 10px 0;
}
#responsiveform > div > fieldset > div > div { margin: 0 0 5px 0;
}
#responsiveform > div > label,
#responsiveform > label,
legend { width: 25%; float: left; padding-top: 5px; padding-right: 10px;
}
#responsiveform > div > div,
#responsiveform > div > fieldset > div { width: 75%; float: right;
}
#responsiveform > div > fieldset label { font-size: 90%;
}
fieldset { border: 0; padding: 0;
}
input[type=text],
input[type=email],
input[type=url],
input[type=password],
textarea { width: 100%; border-top: 1px solid #ccc; border-left: 1px solid #ccc; border-right: 1px solid #eee; border-bottom: 1px solid #eee;
}
input[type=text],
input[type=email],
input[type=url],
input[type=password] { width: 50%;
}
input[type=text]:focus,
input[type=email]:focus,
input[type=url]:focus,
input[type=password]:focus,
textarea:focus { outline: 0; border-color: #4697e4;
}
@media (max-width: 600px) { #responsiveform > div { margin: 0 0 15px 0; } #responsiveform > div > label, legend { width: 100%; float: none; margin: 0 0 5px 0; } #responsiveform > div > div, #responsiveform > div > fieldset > div { width: 100%; float: none; } input[type=text], input[type=email], input[type=url], input[type=password], textarea, select { width: 100%; }
}
@media (min-width: 1200px) { #responsiveform > div > label, legend { text-align: right; }
}
Developer | Tom Hermans |
Username | tomhermans |
Uploaded | December 09, 2022 |
Rating | 3 |
Size | 2,161 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 |
Top Drawer Navigation Menu Toggle push content down | 2,729 Kb |
Sticky Navigation | 4,529 Kb |
Media object module | 3,344 Kb |
Table Row Toggle | 2,829 Kb |
Bulleted list with font-icon snippet | 2,452 Kb |
CKEditor angular test | 15,138 Kb |
CSS Kwicks | 2,202 Kb |
Tryout | 2,820 Kb |
CSS3 Shapes reference | 2,574 Kb |
Text in circle | 2,027 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 |
Animated SVG stroke-dasharray | Netsi1964 | 3,179 Kb |
Sticky menu on scroll | Senff | 2,869 Kb |
Slides-07-1 POSITION | Exhtml | 1,909 Kb |
Dice | Fraina | 5,026 Kb |
DFF Website | Hawcubite | 10,123 Kb |
Simple search using AngularJS | Haykou | 1,802 Kb |
No Vacancy 404 CSS Only | Sethkontny | 0 Kb |
Fading text with CSS blend modes | Giana | 3,305 Kb |
Highbrow Basic HTML Lesson 8 | Kimlarocca | 2,094 Kb |
APortfolio | Skybutterfly | 5,174 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!