W3C home > Mailing lists > Public > www-style@w3.org > March 1999

Margins applied to display:table elements

From: Ian Hickson <py8ieh@bath.ac.uk>
Date: Wed, 3 Mar 1999 22:34:34 +0000 (BST)
To: www-style <www-style@w3.org>
Message-ID: <Pine.GSO.4.04.9903032229030.2133-100000@mary.bath.ac.uk>

Assume the following XML fragment:

   <CONTAINER>
      <TABLE>
	<CELL> Hello </CELL>
      </TABLE>
   </CONTAINER>

Assume the following CSS:

   CONTAINER { direction: ltr; }
   TABLE { display: table; margin: 4em auto; }

What will the width of the table be?


As far as I can tell from the CSS2 spec, the margin-right value will
be treated as auto.

So: How can one specify that the TABLE must span the width of the
CONTAINER, with 4em margins on either side, without changing the padding
or width of the CONTAINER or adding other elements?

-- 
Ian Hickson
Received on Wednesday, 3 March 1999 17:34:41 GMT

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