
October 26th, 2002, 10:48 PM
|
|
Member
|
|
Join Date: Jun 2001
Posts: 12
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
|
Help with making CSS overflow property cross-browser compliant
I would like to create a <div> box with CSS that takes up 100% of the screen height - at a minimum. If there is enough content in the box to overflow it, I would like the box to expand downward to show this extra content.
I have this functionality in IE 5-6. All I have to do is set the <div> box height to 100% in the CSS declaration. However, I understand that this only works because IE 5-6 incorrectly implements the overflow property (see < http://www.xs4all.nl/~ppk/css2tests/overflow.html>).
However, as that page explains, in Netscape6/Mozilla1+, the content (correctly) overflows outside of the box and the box does not expand.
Does anyone have a solution that works for me in both IE and NS/Mozilla? Thanks in advance.
|