Beautiful and Dynamic Input Form
by achudars
HTML
<body>
<!-- Part 1: Wrap all page content here -->
<div id="wrap">
<div id="header">
<div class="container">
<h2>Subtitle</h2>
<h1>Title</h1>
</div>
</div>
<!-- Begin page content -->
<div class="container">
<div class="lead"> <a class="step" href="main.html"></a>
<a class="step" href="main2.html"></a>
<a class="step" href="main3.html"></a>
</div>
</div>
<div id="push"></div>
</div>
<div id="footer">
<div class="container">Footer</div>
</div>
</body>
CSS
html, body {
height: 100%;
background: url(http://images.alphacoders.com/109/109771.jpg) no-repeat center center fixed;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
/* The html and body elements cannot have any padding or margin. */
}
/* Wrapper for page content to push down footer */
#wrap {
min-height: 100%;
height: auto !important;
height: 100%;
/* Negative indent footer by it's height */
margin: 0 auto -24px;
}
/* Set the fixed height of the footer here */
#push, #footer {
height: 24px;
}
#footer {
background-color: #000;
color: #FFFFFF;
}
#header {
background-color: #f5f5f5;
height: 100px;
}
h1 {
color: #FF9E2F;
}
h2 {
color: #1A61A9;
}
.lead {
width: 60%;
margin-left: auto;
margin-right: auto;
position: absolute;
top: 40%;
height: 50px;
left: 20%;
border: 1px solid #000000;
border-radius: 3px;
box-shadow: 3px 3px 5px #000;
padding-left: 5px;
padding-right: 5px;
}
.step {
background: #FFFFFF;
border-radius: 3px;
display: inline-block;
width: 32.5%;
height: 40px;
margin-top: 5px;
margin-left: auto;
margin-right: auto;
}
.step:hover {
box-shadow: 0px 0px 5px 5px #FF9E2F;
-webkit-box-shadow: 0px 0px 5px 5px #FF9E2F;
-moz-box-shadow: 0px 0px 5px 5px #FF9E2F;
}
/* Lastly, apply responsive CSS fixes as necessary */
@media (max-width: 767px) {
#footer, #header {
margin-left: -20px;
margin-right: -20px;
padding-left: 20px;
padding-right: 20px;
}
h1 {
font-size: 30px;
}
.lead {
height: 160px;
}
.step {
width: 100%;
}
}