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

Re: What about styling anonymous container boxes?

From: Ian Hickson <py8ieh@bath.ac.uk>
Date: Wed, 10 Feb 1999 21:23:10 +0000 (BST)
To: Chris Lilley <chris@w3.org>
cc: www-style <www-style@w3.org>
Message-ID: <Pine.GSO.4.04.9902102107170.19464-100000@ss1.bath.ac.uk>
On Wed, 10 Feb 1999, Chris Lilley wrote:

>> I suggest the introduction of a pseudo-element that inserts an
>> anonymous box around the principal box of element in question. This
>> would then allow for the type of styling described above.
> This is where a separate transformations step, specified as part of
> the style sheet processing, is beneficial. The transformation part
> of XSL, outputting another XML document with the correct structure
> for CSS styling, seems to be an appropriate tool.
Good point.

Ok, let's forget this suggestion.

(
> That would deal with that one example. It adds complexity at the
> expense of not really adding a great deal of functionality. It
> doesn't deal with the case where I want the inner border tight
> around the text but the outer border right out to the margins.

   H1 { padding: 0; margin: 2em; border: solid; }
   H1:foobar { padding: 0; border: solid; }

...would do exactly what you describe.
)

-- 
Ian Hickson
Received on Wednesday, 10 February 1999 16:23:20 GMT

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