i’ve seen this on other threads, and this is what i’ve done:
i’m trying to center my relatively placed divs in a container of 428 px and width set to 100% in a table cell set to vertically align in the middle in a table.
the problem is that the other divs are not respecting the height of the container div in order for this to work.
i’d rather not use tables, but i really want this page vertically centered with left-right text flow. does someone mind seeing? I’ve taken out the table information.
[url]http://www.xsystem.gr/stylebytes/thanks.html
with the relevant css here:
body{
font-family: Verdana, Arial, Helvetica, sans-serif;
color: #666666;
line-height: 1.166em;
margin: 0px;
padding-top: 0px;
padding-right: 0px;
padding-bottom: 0px;
padding-left: 0px;
}
#masthead{
margin: 0;
width: 100%;
padding-top: 10px;
padding-right: 0px;
padding-bottom: 10px;
padding-left: 0px;
background-image: url
border: medium none #000000;
}
#navBar{
padding: 0px;
background-color: #ffffff;
margin-top: 5%;
margin-right: 0;
margin-bottom: 0;
margin-left: 80%;
}
#content{
float:left;
width: 75%;
margin: 0;
padding: 0 3% 0 0;
#siteName{
margin: 0px;
padding: 0px 0px;
padding-left: 40px;
#globalNav{
color: #cccccc;
padding: 0px 0px 3px 42px;
white-space: nowrap;
background-color: #FFFFFF;
}
#siteInfo{
clear: both;
font-size: 70%;
color: #cccccc;
margin-top: 0px;
text-align: default;
border-top-style: solid;
padding-top: 3px;
padding-right: 0px;
padding-bottom: 0px;
padding-left: 40px;
border-top-width: 1px;
border-right-style: none;
border-bottom-style: none;
border-left-style: none;
border-top-color: #333333;
float: none;