cooldaddy
06-06-2006, 01:19 PM
I've got some problems aligning my menu and content div. My css looks like this:
#holder{
width: 800px;
margin: 0px auto;
}
#lh-col{
position: absolute;
top: 20px;
left: 20px;
width: 230px;
border: 2px solid #cc0033;
background: #fff;
color: #000;
margin: 0px;
padding: 0px;
height: 400px;
}
#rh-col{
margin: 20px 20px 20px 220px;
border: 2px solid #cc0033;
background: #ccc url('F:\filesl\2c-lc-static\backgr.jpg') repeat-x;;
width: 640px;
color: #333333;
padding-left: 80px;
padding-right: 50px;
height: 600px;
}
And the html is build up in this way:
<body>
<div id="holder>
<div id="lh-col">
some html
</div>
<div id="rh-col">
some html
</div>
</div>
</body>
How can I get both the divs lh- and rh-col centered in the screen ?
#holder{
width: 800px;
margin: 0px auto;
}
#lh-col{
position: absolute;
top: 20px;
left: 20px;
width: 230px;
border: 2px solid #cc0033;
background: #fff;
color: #000;
margin: 0px;
padding: 0px;
height: 400px;
}
#rh-col{
margin: 20px 20px 20px 220px;
border: 2px solid #cc0033;
background: #ccc url('F:\filesl\2c-lc-static\backgr.jpg') repeat-x;;
width: 640px;
color: #333333;
padding-left: 80px;
padding-right: 50px;
height: 600px;
}
And the html is build up in this way:
<body>
<div id="holder>
<div id="lh-col">
some html
</div>
<div id="rh-col">
some html
</div>
</div>
</body>
How can I get both the divs lh- and rh-col centered in the screen ?