On Fri, 7 May 2004, Sean M. Hall wrote: > > 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%; > } This is possible now in CSS2.1: div#navbar { display: table-cell; } div#content { display: table-cell; } (Assuming the two elements are adjacent siblings.) -- Ian Hickson )\._.,--....,'``. fL U+1047E /, _.. \ _\ ;`._ ,. http://index.hixie.ch/ `._.-(,_..'--(,_..'`-.;.'Received on Saturday, 8 May 2004 08:53:03 GMT
This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:54:29 GMT