CSS3 Form Page Design
How do I make an css3 form page design?
I Designed this Pure CSS3 Form Page for one of my Client, so just wanted to share it with all of you guys !. What is a css3 form page design? How do you make a css3 form page design? This script and codes were developed by Satnam Singh on 07 October 2022, Friday.
CSS3 Form Page Design - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>CSS3 Form Page Design</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div class="header"> <div class="logo"> <a href="#"><img src="https://i.imgur.com/zyu6Nl9.png" alt="logo" width="175"></a> </div> </div> <div class="navBar"> <nav id="mainNav"> <ul> <li><a href="#">Home</a></li> <li><a href="#">Current</a></li> <li><a href="#">New</a></li> </ul> <div class="searchIcon"> <form id="searchForm" action="#" method="post"> <input type="text" placeholder="search..." class="searchBox" id="mySearch"> <button id="searchBtn" type="button"><img src="https://i.imgur.com/8Pz5ZpX.png" alt="search-icon" width="20"></button> </form> </div> </nav> </div> <div class="container"> <form action="#" method="post"> <div class="formElement"> <label class="label" for="appName">Enter the Application Name:</label> <input type="text" placeholder="Text Here..." id="appName"> </div> <div class="formElement"> <label class="label" for="appSelect">What is the impact of this application if it's down?:</label> <label class="select"> <select id="appSelect"> <option value="red">Red</option> <option value="yellow">Yellow</option> </select> </label> </div> <div class="formElement"> <label class="label">What type of environment is this?</label> <input type="radio" name="environment" id="dev"><label for="dev">Dev</label> <input type="radio" name="environment" id="qa"><label for="qa">QA</label> </div> <div class="formElement"> <label class="label" for="hostNames">Enter Hostnames</label> <textarea id="hostNames">Text Here...</textarea> </div> <div class="formElement"> <label class="label"></label> <input type="submit" value="Submit" name="submit"> </div> </form> </div> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script> <script src="js/index.js"></script>
</body>
</html>
CSS3 Form Page Design - Script Codes CSS Codes
* { margin:0; padding:0;
}
body { background:url('https://i.imgur.com/gaqdL8o.jpg') repeat #ccc; font-family: 'Open Sans', sans-serif; font-weight:400;
}
a { text-decoration:none; color:white; outline:none; /* IE fix */
}
.container, nav#mainNav { width:768px; margin:0 auto;
}
.header { background:#e1fbfc; background:linear-gradient(#e2fbfd, #e1fbfc); background:-webkit-linear-gradient(#e2fbfd, #e1fbfc); background:-moz-linear-gradient(#e2fbfd, #e1fbfc); background:-o-linear-gradient(#e2fbfd, #e1fbfc); background:-ms-linear-gradient(#e2fbfd, #e1fbfc); padding:10px 0 0 10px;
}
div.logo { width: 768px; margin:0 auto;
}
div.navBar, input[type="submit"] { background::#50a5ed; background:linear-gradient(#50a5ed, #3280c2); background:-webkit-linear-gradient(#50a5ed, #3280c2); background:-moz-linear-gradient(#50a5ed, #3280c2); background:-o-linear-gradient(#50a5ed, #3280c2); background:-ms-linear-gradient(#50a5ed, #3280c2); box-shadow:inset 0 1px #6ce4f6, 0 1px #787778; color:white;
}
nav#mainNav { overflow:hidden;
}
#mainNav ul { list-style:none; float:left;
}
#mainNav ul li { display:inline;
}
#mainNav ul li a { padding:15px 0; margin-right:30px; display:inline-block; position:relative; text-align:center;
}
#mainNav ul li a:after { content:''; display:block; width:0%; opacity:0; position:absolute; bottom:0px; border:1px solid #6ce4f6; transition:all .3s;
}
#mainNav ul li a:hover:after { width:100%; opacity:1;
}
div.searchIcon { float:right;
}
div.container { background:white; margin-top:30px; border-radius:5px; -webkit-border-radius:5px; -moz-border-radius:5px; -o-border-radius:5px; -ms-border-radius:5px; border:1px solid #ccc; padding:10px; color:#939393; font-weight:400; font-size:19px;
}
.formElement { padding:20px 5px;
}
label.label { width:60%; display:inline-block; text-align:right; vertical-align:top; padding-right:25px;
}
input,textarea, select { font-family: 'Open Sans', sans-serif; background:#f6f6f6; color:#a4a4a4; border:none; outline:none; padding:13px; border-radius:5px; -webkit-border-radius:5px; -moz-border-radius:5px; -o-border-radius:5px; -ms-border-radius:5px; border:1px solid #ccc; width:30%; transition:all .3s;
}
select { width:33.5%; box-shadow:0 3px 0 #ccc; -webkit-appearance:none; -moz-appearance:none; -o-appearance:none; -ms-appearance:none; appearance:none; cursor:pointer;
}
input:hover,textarea:hover, select:hover { border-color:#aaa;
}
input:focus,textarea:focus, select:focus { box-shadow:0 0 0px 1.5px #3d92d9;
}
label.select { position:relative;
}
label.select:after { content:'<>'; font:15px "Consolas", monospace; color:#ccc; -webkit-transform:rotate(90deg); -moz-transform:rotate(90deg); -ms-transform:rotate(90deg); -o-transform:rotate(90deg); transform:rotate(90deg); position:absolute; right:22px; top:2px; border-bottom:1px solid #ccc; padding-bottom:10px; margin-bottom:-50px;
}
input[type="radio"] { width:auto; margin-right:6px; margin-left:5%; cursor:pointer;
}
label[for="dev"], label[for="qa"] { cursor:pointer;
}
input[type="submit"] { cursor:pointer; border-radius:40px; -webkit-border-radius:40px; -moz-border-radius:40px; -o-border-radius:40px; -ms-border-radius:40px; width:20%;
}
input[type="submit"]:hover { background::#69B7FA; background:linear-gradient(#69B7FA, #3280c2); background:-webkit-linear-gradient(#69B7FA, #3280c2); background:-moz-linear-gradient(#69B7FA, #3280c2); background:-o-linear-gradient(#69B7FA, #3280c2); background:-ms-linear-gradient(#69B7FA, #3280c2); box-shadow:inset 0 1px #6ce4f6, 0 1px #787778;
}
.formElement:last-child { padding:0; margin-bottom:15px;
}
.searchIcon input { width:200px; padding:5px; position: relative; top: -5px; left: -10px; background: #2169a6; border-color: #4197df; color:white;
}
.searchIcon img { margin-top:15px; cursor:pointer;
}
button#searchBtn { background:none; border:none; outline:none; opacity:.8;
}
button#searchBtn:hover { opacity:1;
}
input.searchBox { left:0; width:0; opacity:0;
}
CSS3 Form Page Design - Script Codes JS Codes
$(document).ready(function(e) { $('button#searchBtn').click(function(e) { if( ! document.getElementById('mySearch').value.length > 0 ) { $('.searchIcon input').toggleClass('searchBox'); } else { $('#searchForm').submit(); } });
});
Developer | Satnam Singh |
Username | rssatnam |
Uploaded | October 07, 2022 |
Rating | 3 |
Size | 3,613 Kb |
Views | 32,384 |
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 |
Navigation Slider | 2,107 Kb |
Image Viewer | 2,115 Kb |
CSS3 Form Page Design | 3,613 Kb |
Pure CSS3 Drop-down Navigation with Effects | 2,262 Kb |
Giving Strike, Del or S elements a Color | 1,505 Kb |
Name Hover Bubble Animation | 1,639 Kb |
A Pen by Satnam Singh | 11,360 Kb |
SVG Cone Scribble | 1,724 Kb |
Navigation Icon 3 lines to X | 2,053 Kb |
CSS Ribbon | 1,903 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 |
Transition | Shayhowe | 1,632 Kb |
Flex Table | Simeonoff | 4,059 Kb |
Rrremark.com Overlay Highlighter | Derickruiz | 4,438 Kb |
To Do List with Delete | Mattlbrody | 2,068 Kb |
Cloud upload | Jaflo | 2,774 Kb |
Ocean | Gordonnl | 2,817 Kb |
A Pen by Brendan Skousen | Bskousen | 2,954 Kb |
A Pen by Shidhin | Shidhincr | 5,015 Kb |
Animating characters with jQuery | 042 | 2,776 Kb |
AngularJS Datalist Directive | M-e-conroy | 2,366 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!