Sent by John Lewis on 30 November 2002 19:07
Eric wrote on Saturday, November 30, 2002 at 12:30:42 AM:
> #contain {
> width: 99.9%; height: 100%;
> padding: 0 0 0 0;\
> }
I'm too lazy to check, but the \ may be causing you problems. (Why
99.9% and not 100%?)
> #content {
> width: 100%; height: 80%;
> padding-top: 20px;
> padding-left: 5px;
> padding-right: 5px;
> padding-bottom: 20px;
> }
100% width + 10px padding = wider than 100%.
80% height + 40px padding = taller than 80%.
That may be causing you problems.
> <img src="spacer.gif" /> <!-- Keeps the header at a min height -->
That's what min-height is for. :)
> Mozilla seems to be completely ignoring the height in percent, why is this?
> Also, I have a problem with the width as well in both IE, OPERA, and
> Mozilla.
I wouldn't be surprised about the width problems (because of your
padding). I've never seen Mozilla ignore percentage heights, at least
I don't recall it, so I'll have to look into that later.
--
John
_______________________________________________
css-discuss [EMAIL-REMOVED]]
http://two.pairlist.net/mailman/listinfo/css-discuss
Sponsored by www.westciv.com - CSS resources | software | learning