W3C home > Mailing lists > Public > www-style@w3.org > January 2002


From: Jonathan Watt <0jaw@qlink.queensu.ca>
Date: Tue, 29 Jan 2002 22:06:57 -0500
Message-Id: <>
To: www-style@w3.org

I would like to know if there is any way to use CSS2 to position four <div> 
elements as shown in the image at http://www.jwatt.net/temp/css_q.png (284 

Whatever styling is used the top and bottom div elements should collapse 
vertically to the height of their contents while maintaining 100% width. 
The left and right div elements should collapse to the width of their 
contents while maintaining their top edge against the bottom edge of the 
top div element and their bottom edge against the top edge of the bottom 
div element. When the window is resized the div elements should be resized 
to maintain the positioning described above. In addition to all this the 
content of the page should then be able to fall into the space in the 
middle (perhaps another div element would need to be made to contain it?)

The content of the div elements will change (using JavaScript to control 
the CSS display property), hence the importance that the divs will collapse 
to the size of their content as it changes.

Failing this, is it likely to be possible to do this using any of the CSS3 
modules? And does anyone know of a work around in the meantime?


Received on Tuesday, 29 January 2002 22:03:53 UTC

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