Ill try to show what i mean by 2 paint pictures,, just rough sketches of what i mean,, and then post the HTML and CSS code with it.
What i have now is:

The Darkblue is the div that contains all of my website (the divs name is "all" in the coding) right now, its centered to middle horizontally but to the top vertically which leaves an ugly background spot (which is huge in my opinion) down the bottom on bigger screens.
What i want is this:

The Darblue again is the div that contains all of my website, just what i basically want is that its both horizontally and vertically centered. I just have no idea how to do this, also i dont know if its maybe smarter to make a big table that contains all the other divs, instead of a div that contains all the divs??
This is the HTML:
Code:
<div id="all">
<div id="header_wrap">
<div id="header">
</div>
</div>
<div id="main_wrap">
<div id="site_wrap">
<table width="941" height="402" border="0" align="center">
<tr>
<td width="162" background="images/menu_bg.jpg"><iframe name="menu" src="menu.html" frameborder="0" width="162px" height="402px" allowtransparency="true" scrolling="no"></iframe></td>
<td width="14"></td>
<td width="751" background="images/content_bg.jpg"><iframe name="content" src="home.html" frameborder="0" width="751px" height="402px" allowtransparency="true" scrolling="auto"></iframe></td>
</tr>
</table>
</div>
</div>
</div>
This is the CSS:
Code:
#all {
width:100%;
height:673px;
}
#header_wrap {
width:100%;
height:263px;
margin-top:auto;
background:url(images/header_bg.jpg);
}
#header {
width:960px;
height:262px;
margin:0 auto;
margin-top:auto;
background:url(images/header.png);
}
#main_wrap {
width:100%;
height:410px;
margin:0;
background:url(images/rest_bg.jpg);
}
#site_wrap {
width:960px;
height:410px;
margin:0 auto;
background:url(images/rest_bg.jpg);
}
Bookmarks