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

Re: Box model: min-margin and max-margin, max-padding and min-padding

From: Andrew Fedoniouk <news@terrainformatica.com>
Date: Fri, 1 Oct 2004 19:35:06 -0700
Message-ID: <001701c4a828$6de1f6a0$0401a8c0@ATHLON>
To: "Robin Berjon" <robin.berjon@expway.fr>, "Brian Sexton" <discussion-w3c@ididnotoptin.com>
Cc: "www style" <www-style@w3.org>

| >> Make (1) display: table-row, and (2) and (3) display: table-cell, with
| >> the
| >> element containing all three (possibly the <body>) display: table with
| >> width: 100%.
| >
| > So using tables for layout of non-tabular content via HTML is a no-no,
| > but using "display: table", "display: table-row", and "display:
| > table-cell" for such content is okay?
|

The best way would be to use hypothetical "flow" attribute.

The flow controls visual order of contained block elements and
having values : top-to-bottom(default), bottom-to-top, left-to-right,
right-to-left

So
 ---------------------
 | (1) Header        |
 ---------------------
 | (2) Content | (3) |
 |             |  S  |
 |             |  i  |
 |             |  d  |
 |             |  e  |
 |             |  b  |
 |             |  a  |
 |             |  r  |
 ---------------------

whould be just

<div id="header">
<div id="body" style="flow:right-to-left">
   <div id="sidebar">
   <div id="content">
</div>
</div>

"Does anybody know where I can by Occam's Razor?"

Andrew Fedoniouk.
http://terrainformatica.com
Received on Saturday, 2 October 2004 02:36:12 GMT

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