Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

using css for layout

Status
Not open for further replies.

bigcol

Technical User
Mar 22, 2002
2
GB
How do I create a style sheet that will have one header column and two other colums underneath for a menu bar and the other for site content.

I want to recreate the look of using style sheets if possible

Bigcol
 
Here's a drastically simplified, standard "hockey stick" CSS layout:
Code:
<style>
#header{background-color:#009;color:white;min-height:70px;}
#contents{float:right;width:80%;min-height:300px;background-color:white;color:black;}
#navbar{background-color:#900;color:white;min-height:200px;width:20%;}
#footer{clear:right;background-color:#090;color:white;min-height:50px;}
</style>

<div id=&quot;header&quot;>
...header contents...
</div>
<div id=&quot;contents&quot;>
...actual contents...
</div>
<div id=&quot;navbar&quot;>
...nav contents...
</div>
<div id=&quot;footer&quot;>
...footer contents...
</div>
petey
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top