W3C home > Mailing lists > Public > www-style@w3.org > May 2004

'offsetWidth/height' function

From: Sean M. Hall <pianoman@reno.com>
Date: 7 May 2004 22:16:36 +0000
Message-ID: <C536CD9E_61BB_459E_8DFF_8F2F19A161A7@webmail.loadmail.load.com>
To: www-style@w3.org

A common problem with CSS is two column stretching. The navbar should be as long (no more, no less) than the content div. CSS does not yet have a rule for this (see http://www.quirksmode.org/dom/3column.html)

I propose this for CSS(3):

div#navbar {
height: offsetHeight(div#content)px;
width: 25%;

The 'px' at the end is optional. 

This may not be the best syntax, but CSS does need some sort of a rule so we can keep DHTML Javascript doing what it does best: enhancing usability, not doing something CSS *should* be capable of doing.

By the way, evolt.org is going to publish an article I wrote about CSS3 support in modern browsers sometime in the coming weeks.


Received on Friday, 7 May 2004 19:41:39 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:27:13 UTC