Re: Inserting text with CSS

Ian Brockbank wrote:
> 
> Hi all,
> 
> is there any way using CSS of inserting text?  This would be useful
> for consistent labelling.

There is one way, using :after and :before pseudo-elements. But it does
not "insert" content in the document. It adds content to the rendering
tree ; so if you save the document, this content does not appear in the
file:

> <h1 class="pagehead">Some Stuff</h1>
> 
> and have it render as
> 
> Dancing Forth Aug-Sep 1999: Some Stuff


Use the following rule :

	H1:before { content : "Dancing Forth Aug-Sep 1999" }

</Daniel>

Received on Wednesday, 25 August 1999 04:39:24 UTC