W3C home > Mailing lists > Public > www-style@w3.org > November 1997

Re: 'fixed' positioning [WAS: Header, Footer, and Sidebars]

From: David Perrell <davidp@earthlink.net>
Date: Thu, 27 Nov 1997 12:34:14 -0800
To: "'W3C Style List'" <www-style@w3.org>
Message-ID: <01bcfb73$d331d340$628cd9cf@davidp>

Andrew n marshall wrote:

>Secondly, 'fixed doesn't solve the problem.  For example, take my sidebar
>DIV.  If I wanted the width to just barely fit the content, I could do this
>by controlling overflow.  The problem this causes is the width and left
>edge of the main DIV are determined until render time.

It is possible to auto-adjust the sidebar to accommodate the text. Using
your own example as a starting point, you need only to put your sidebar text
in a float:left table and use 'relative' position on the right DIV. The
table width varies with text width, moving the relative anchor point
accordingly.

David Perrell
Received on Thursday, 27 November 1997 18:42:13 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:53:53 GMT