Responsive Form

Developer
Size
2,161 Kb
Views
10,120

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 Previews

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; }
}
Responsive Form - Script Codes
Responsive Form - Script Codes
Home Page Home
Developer Tom Hermans
Username tomhermans
Uploaded December 09, 2022
Rating 3
Size 2,161 Kb
Views 10,120
Do you need developer help for Responsive Form?

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!

Tom Hermans (tomhermans) Script Codes
Create amazing captions 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!