I am pretty new to CSS and div tags, basically this is my problem
<html>
<head>
<title>Untitled Document</title>
<style type="text/css">
#header
{
margin-left:auto;
margin-right:auto;
background:#0000CC;
width:800px;
height:100px;
}
#leftcol
{
margin-left:auto;
margin-right:auto;
background:#00CC66;
width:150px;
height:500px;
}
#content
{
margin-left:auto;
margin-right:auto;
float:none;
background:#996666;
width:650px;
height:500px;
}
#footer
{
margin-left:auto;
margin-right:auto;
background:#996699;
width:800px;
clear:left;
height:100px;
}
</style>
</head>
<body>
<div id="header">Header Section</div>
<div id="leftcol">Left Section</div>
<div id="content">Content</div>
<div id="footer">Footer Section</div>
</body>
</html>
How do I center the middle two div areas?
Regards,
JkinsonA

New Topic/Question
Reply



MultiQuote






|