Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>This is a lot of change, but assuming you can make your elements in the header (and other places) <code>&lt;div&gt;</code>s instead of lists (<code>&lt;ul&gt;</code>, <code>&lt;li&gt;</code>, etc), give this a try:</p> <p>CSS:</p> <pre><code>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; } </code></pre> <p>HTML:</p> <pre><code>&lt;body&gt; &lt;!-- begin #header --&gt; &lt;div class="header"&gt; &lt;div class="hd-banner"&gt; &lt;h1&gt;Marryland Learning Center&lt;/h1&gt; &lt;/div&gt; &lt;div class="login"&gt; &lt;form id="loginForm" action="/" method="post"&gt; &lt;div class="hd-caption"&gt; &lt;div class="hd-login-top t1"&gt; &lt;input type="text" id="email" name="email" class="state-inp-sign-in" placeholder="Email" /&gt; &lt;/div&gt; &lt;div class="hd-login-top t2"&gt; &lt;input type="password" id="password" name="password" class="state-inp-sign-in" placeholder="Password" /&gt; &lt;/div&gt; &lt;div class="hd-login-top t3"&gt; &lt;input type="submit" id="signIn" name="signIn" value="Sign in" /&gt; &lt;/div&gt; &lt;/div&gt; &lt;div class="hd-caption-2"&gt; &lt;div class="hd-login-bottom b1"&gt; &lt;label for="RememberMe"&gt;&lt;input name="RememberMe" type="checkbox" value="true"&gt; &lt;input name="RememberMe" type="hidden" value="false" /&gt; Remember me&lt;/label&gt; &lt;/div&gt; &lt;div class="hd-login-bottom b2"&gt; &lt;a href=""&gt;Trouble signing in?&lt;/a&gt; &lt;/div&gt; &lt;div class="hd-login-bottom b3"&gt; &lt;input type="submit" name="action" value="Register" /&gt; &lt;/div&gt; &lt;/div&gt; &lt;/form&gt; &lt;/div&gt; &lt;/div&gt; &lt;!-- end #header --&gt; &lt;div class="nav"&gt; &lt;ul class="menu"&gt; &lt;li&gt;&lt;a href=""&gt;Students&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href=""&gt;Teachers&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href=""&gt;Training&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href=""&gt;About Us&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href=""&gt;Contact Us&lt;/a&gt;&lt;/li&gt; &lt;/ul&gt; &lt;!-- end #nav --&gt;&lt;/div&gt; &lt;div class="content"&gt; &lt;!-- begin #extra --&gt; &lt;div class="sidebar"&gt; &lt;form name="search" action="/" method="post"&gt; &lt;fieldset&gt;&lt;legend&gt;Quick Search&lt;/legend&gt; &lt;p&gt;&lt;label&gt;Key Words &lt;input type="text" name="keywords" id="keywords" class="textinput"&gt;&lt;/label&gt;&lt;/p&gt; &lt;p&gt;&lt;label&gt;Class &lt;input type="text" name="class" id="country1" class="textinput"&gt;&lt;/label&gt;&lt;/p&gt; &lt;p&gt;&lt;input type="submit" name="search" id="search" value="Search"&gt;&lt;/p&gt; &lt;/fieldset&gt; &lt;/form&gt; &lt;!-- end #extra --&gt;&lt;/div&gt; &lt;div class="main"&gt; &lt;h2&gt;Implementing Responsive Design&lt;/h2&gt; &lt;p&gt;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.&lt;/p&gt; &lt;!-- end #main --&gt;&lt;/div&gt; &lt;!-- end #content --&gt;&lt;/div&gt; &lt;div class="footer"&gt; &lt;ul class="footer-menu"&gt; &lt;li&gt;&lt;a href=""&gt;Site Terms&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href=""&gt;Privacy Policy&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href=""&gt;Disclaimer&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href=""&gt;Site Map&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href=""&gt;Discrimination&lt;/a&gt;&lt;/li&gt; &lt;/ul&gt; &lt;p class="copyright"&gt;Copyright &amp;copy; &lt;/p&gt; &lt;!-- end #footer --&gt;&lt;/div&gt; &lt;/body&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload