Forum Moderators: not2easy

Message Too Old, No Replies

CSS Height 100% and Auto

Stretching 100% and Auto at the same time

         

beezm

12:15 am on Jul 14, 2004 (gmt 0)

10+ Year Member



I have a simple design that stretches 100% height of the page. My problem is this... In FireFox whenever the content in the div that is stretched 100% goes past the normal 100% mark, it stops and the content keeps going. If i use the height: auto; way of doing it, if it is too short, the bg doesn't go to the bottom of the page. Is there a way to combine these two? So it stretches 100% and then if the content inside the div goes past it, it keeps stretching?

Thanks,
beezm

Purple Martin

1:02 am on Jul 14, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Use a vertically-tiled background image in the body. It's not the best way but it is the only way, if you know what I mean.

DrDoc

4:26 am on Jul 14, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



min-height: 100%;

:)

Purple Martin

6:57 am on Jul 14, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I thought min-height wasn't supported by IE? :o

DrDoc

2:48 pm on Jul 14, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



It isn't... but that can be hacked around :)

createErrorMsg

3:35 pm on Jul 14, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



How? :)

beezm

6:07 pm on Jul 14, 2004 (gmt 0)

10+ Year Member



Thank you for the replies. With a little help from a friend of mine I have it figured out. You have to kinda h4x0r it a little to get it working o_O!

Here is the code:
height:auto!important;
height:100%;
min-height:100%;