[thelist] why doth i hate css? let me count the ways.

Joshua Olson joshua at waetech.com
Thu Oct 9 20:10:52 CDT 2003


----- Original Message ----- 
From: "Jeff Howden" <jeff at jeffhowden.com>
Sent: Thursday, October 09, 2003 8:24 PM


> simple, a height of 100% is 100% of what?  the viewport?  the browser
> window?  the body?  if it's the body, is the body 100% of the viewport or
> less or more?

You're making it way too tough.  How about the 100% of the height of the
container, just like width?  Doesn't seem that programming the browser to
perform this calculation should that be too tough for the infinitely gifted
programmers that work on browser projects.  They figured it out with table
cells many many years ago, why can't they seem to figure it out with divs?

Michal Migurski then suggested:

> Why not just use absolute positioning and overflow?

Sure, but that means I can't apply a background image, background color, or
border to the div, right?  I definitely feel Chris's pain.

I have yet to find solid example of someone making a div the same height as
it's container.  Someone, please, present an example that works on IE 5/6,
NS 6/7, Moz so I can rest easier.

<><><><><><><><><><>
Joshua Olson
Web Application Engineer
WAE Tech Inc.
http://www.waetech.com
706.210.0168



More information about the thelist mailing list