Hey guys. I downloaded a small layout from this one site. It had div on the left side for navigation. I would like to make one on the right and I tried by copying the left div and the CSS for it but it didn't work.
Here's the code:
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<title>Ability Chart - Layout Test</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<style type="text/css">
body{
background-color:#dc8;
font-size:16px;
margin:0;
padding:0;
}
#header{
background-color:#333;
height:150px;
width:100%;
color:red;
}
#left{
float:left;
width:200px;
background-color:#dc8;
min-height:650px; /* for modern browsers */
height:auto !important; /* for modern browsers */
height:650px; /* for IE5.x and IE6 */
}
#center {
margin-left:200px;
background-color:#eec;
min-height:650px; /* for modern browsers */
height:auto !important; /* for modern browsers */
height:650px; /* for IE5.x and IE6 */
}
#footer {
clear:both;
background-color:#333;
height:100px;
color: red;
text-align: center;
}
</style>
</head>
<body>
<div id="header">
</div>
<div id="left"></div>
<div id="center">
<h1 align="center">Home</h1>
<p><strong>I like this site! Where should I start? </strong></p>
<p>The very first thing you should do is bookmark and/or favorite our site! You're gonna want to come here often and it's much easier for you when you have our site bookmarked and/or favorited. </p>
<p>Have you signed up? If not, make sure you do right away. By signing up, you become a member of our site which allows you to access more features and get support faster! You also become a part of our great community! </p>
<p>After signing up, make sure you join our Forums. Our Forums play a BIG role in our community providing you with instant support, endless entertainment and best of all, a friendly environment where players get to share their thoughts!</p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
</div>
<div id="footer">
<hr />
Copyright © 2009 National Specialist Group</div>
</body>
</html>
I would like the same bar on the left to be on the right side of the page.
Please correct the code and show me what you had to do to correct it (use different colors please)
Also I have all those   things (I know it means space). I pressed space to make it editable so can I like make it have more height without having all those spaces in there.
Why is it   for a space? Is there a meaning to it?
What color is the left navigation panel btw? It says #dc8 but I can't find that with PhotoShop even when I choose web colors.
You see the space on the upper and lower part of the main section? Why are those there? How can I fix that?
And for the last question, what does Min-Height do?
Thanks for your time and effort!
~ Reaper ~
Last edited by Reaper2794; 06-02-2009 at 05:12 PM..
|