Re: What about styling anonymous container boxes?

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 UTC