That was it. Thank you, Robbert
-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Gunlaug Sørtun Sent: Tuesday, February 21, 2006 6:23 PM To: css-d@lists.css-discuss.org Subject: Re: [css-d] Div Height Robbert van Andel wrote: > I recently updated my website, replacing a table with a div as the > body of the page. I want this division to be at least the height of > the screen but also grow if content scrolls off the page. In IE, the > page renders fine, but in FireFox, the division does not grow if the > text scrolls beyond the bottom of the screen. > http://www.swimoregon.org/AquaMaster/ > I'm constantly fighting with this set up and actually used a table on > another website to avoid this problem. I would really like to > figure out how to do this with a division as I understand that tables > are deprecated in the use of layout. The solution is to make divs behave/render like tables, by adding... #body {display: table;} ...so they do expand with content as tables does. That's according to CSS specs, so Firefox will do just fine with it. IE/win doesn't understand 'display: table;' but IE6 and older versions are saved by a bug called 'Layout'[1]. Don't know how IE7 will do though, as it won't be up to standards and they have partially killed that 'Layout' bug. regards Georg [1]http://www.satzansatz.de/cssd/onhavinglayout.html -- http://www.gunlaug.no ______________________________________________________________________ css-discuss [EMAIL PROTECTED] http://www.css-discuss.org/mailman/listinfo/css-d IE7b2 testing hub -- http://css-discuss.incutio.com/?page=IE7 List wiki/FAQ -- http://css-discuss.incutio.com/ Supported by evolt.org -- http://www.evolt.org/help_support_evolt/ ______________________________________________________________________ css-discuss [EMAIL PROTECTED] http://www.css-discuss.org/mailman/listinfo/css-d IE7b2 testing hub -- http://css-discuss.incutio.com/?page=IE7 List wiki/FAQ -- http://css-discuss.incutio.com/ Supported by evolt.org -- http://www.evolt.org/help_support_evolt/