Forum Moderators: not2easy
searching thru the forums, have found out how to center horizontally. how can i "center" my pages so that there is also bgcolor showing on the top and bottom of my div container? here is what i have:
body
{
background-color: #B6DCF0;
}
#container
{ /* overall container box */
background-color: #FFFFFF;
border: solid 1px #000000;
width: 740px;
position: absolute;
top: 0;
left: 50%;
margin-left: -370px;
}
thank you.
<style type="text/css">
<!--
#Outer{ width:400px; height:300px; background-color:#0000FF}
#Inner{margin-bottom:15%; margin-top:15%; background-color:#FF0000;}
-->
</style>
</head>
<body>
<div id="Outer">
<div id="Inner">some text </div>
</div>