There are some significant changes to be made here, particularly converting elements in the header (and elsewhere) from lists (<ul>
, <li>
, etc) to <div>
s. Here is a revised version:
CSS:
body {
background-color: #FFFFFF;
font-family: Helvetica,Arial,sans-serif;
font-size: 100%;
margin: 0;
padding: 0;
}
.header {
margin: 0;
min-height: 70px;
overflow: hidden;
}
.hd-banner {
background-color: #FFFFCC;
height: 95px;
left: 0;
margin: 0;
max-width: 50%;
position: absolute;
text-align: center;
top: 0;
width: 1000px;
}
.login {
left: 50%;
margin: 0;
max-width: 50%;
position: relative;
top: 10px;
}
.hd-caption {
clear: both;
height: 35px;
}
.hd-login-top, .hd-login-bottom {
display: inline;
text-align: center;
}
.t1, .t2, .t3, .b1, .b2, .b3 {
display: inline-block;
margin-left: auto;
margin-right: auto;
max-width: 32%;
width: 400px;
}
.state-inp-sign-in {
height: 28px;
line-height: 24px;
outline: medium none;
width: 130px;
}
button, input, select, textarea {
font-size: 100%;
margin: 0;
}
ul.menu {
background-color: #98BF21;
clear: both;
list-style-type: none;
overflow: hidden;
padding: 1em;
text-align: center;
}
ul.menu li {
display: inline-block;
}
ul.menu li a:link, a:visited {
color: #FFFFFF;
display: block;
font-weight: bold;
margin: 0 auto;
padding: 4px;
text-align: center;
text-decoration: none;
text-transform: uppercase;
width: 120px;
}
ul.menu li a:hover, a:active {
background-color: #7A991A;
}
.content {
clear: both;
margin-top: 3em;
overflow: hidden;
width: 100%;
}
.sidebar {
float: left;
margin-right: 5%;
width: 30%;
}
.main {
float: left;
overflow: hidden;
width: 65%;
}
.footer {
clear: left;
margin-top: 1em;
overflow: hidden;
width: 100%;
}
ul.footer-menu {
background-color: #999999;
clear: both;
list-style-type: none;
overflow: hidden;
padding: 0;
text-align: center;
}
ul.footer-menu li {
display: inline-block;
}
ul.footer-menu li a:link, a:visited {
color: #FFFFFF;
display: block;
font-weight: bold;
margin: 0 auto;
padding: 4px;
text-align: center;
text-decoration: none;
width: 120px;
}
ul.footer-menu li a:hover, a:active {
background-color: #7A991A;
}
.copyright {
text-align: center;
}
.sidebar form {
background-color: #D0E9F6;
border: 1px solid #666666;
border-radius: 10px;
box-shadow: 0.2em 0.2em 0.5em #999999;
padding: 1em;
width: 15em;
}
.sidebar legend {
font-size: 1.2em;
font-weight: bold;
text-align: left;
}
label {
color: #04699D;
text-align: left;
width: 8em;
}
input[type="submit"] {
background: none repeat scroll 0 0 #FFFFFF;
border: 1px solid #04699D;
border-radius: 4px;
box-shadow: 2px 2px 3px rgba(0, 0, 0, 0.5);
font-size: inherit;
height: 1.8em;
width: 7em;
}
.main form {
background-color: #D0E9F6;
border: 1px solid #666666;
border-radius: 10px;
box-shadow: 0.2em 0.2em 0.5em #999999;
padding: 1em;
width: 30em;
}
.hd-login-bottom a {
color: #04699D;
text-decoration: none;
}
HTML:
<body>
<!-- begin #header -->
<div class="header">
<div class="hd-banner">
<h1>Marryland Learning Center</h1>
</div>
<div class="login">
<form id="loginForm" action="/" method="post">
<div class="hd-caption">
<div class="hd-login-top t1">
<input type="text" id="email" name="email" class="state-inp-sign-in" placeholder="Email" />
</div>
<div class="hd-login-top t2">
<input type="password" id="password" name="password" class="state-inp-sign-in" placeholder="Password" />
</div>
<div class="hd-login-top t3">
<input type="submit" id="signIn" name="signIn" value="Sign in" />
</div>
</div>
<div class="hd-caption-2">
<div class="hd-login-bottom b1">
<label for="RememberMe"><input name="RememberMe" type="checkbox" value="true"> <input name="RememberMe" type="hidden" value="false" /> Remember me</label>
</div>
<div class="hd-login-bottom b2">
<a href="">Trouble signing in?</a>
</div>
<div class="hd-login-bottom b3">
<input type="submit" name="action" value="Register" />
</div>
</div>
</form>
</div>
</div>
<!-- end #header -->
<div class="nav">
<div class="menu">
<div><a href="">Students</a></div>
<div><a href="">Teachers</a></div>
<div><a href="">Training</a></div>
<div><a href="">About Us</a></div>
<div><a href="">Contact Us</a></div>
</div>
<!-- end #nav --></div>
<div class="content">
<div class="sidebar">
<form name="search" action="/" method="post">
<fieldset><legend>Quick Search</legend>
<p><label>Key Words <input type="text" name="keywords" id="keywords" class="textinput"></label></p>
<p><label>Class <input type="text" name="class" id="country1" class="textinput"></label></p>
<p><input type="submit" name="search" id="search" value="Search"></p>
</fieldset>
</form>
</div>
<div class="main">
<h2>Implementing Responsive Design</h2>
<p>New devices and platforms emerge daily. Browsers iterate at a remarkable pace. Faced with this volatile landscape we can either struggle for control or we can embrace the inherent flexibility of the web. Responsive design is not just another technique--it is the beginning of the maturation of a medium and a fundamental shift in the way we think about the web.</p>
</div>
<div class="footer">
<div class="footer-menu">
<div><a href="">Site Terms</a></div>
<div><a href="">Privacy Policy</a></div>
<div><a href="">Disclaimer</a></div>
<div><a href="">Site Map</a></div>
<div><a href="">Discrimination</a></div>
</div>
<p class="copyright">Copyright © </p>
</div>
</body>