The SitePoint Forums have moved.

You can now find them here.
This forum is now closed to new posts, but you can browse existing content.
You can find out more information about the move and how to open a new account (if necessary) here.
If you get stuck you can get support by emailing forums@sitepoint.com

If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

percentage not pixels??

Hey gang, I am trying to break an old habit of using tables to layout pages (hey, if itís not broke don't fix it... well its starting to break....). Anyway, it seems that everywhere I look, css seems to be pixel driven when it comes to height. I have a project for an intranet site (all clients are IE7), the page needs to look the same in all screen resolutions. The page will be split into 2 halves vertically, 70% on the top and 30% on the bottom. If I were to use tables, the html would look like this:

To reference 100% height of the screen, you need to set both html and body to 100% - then you can set the heights of two divs to be percentages of that. Note that you would have to deal with content which could exceed the height of either div.