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

Inserting text with CSS

From: Ian Brockbank <ian@indigo-avs.com>
Date: Wed, 25 Aug 1999 09:31:17 +0100
Message-ID: <c=US%a=_%p=Indigo_Active_Vi%l=CRIANLARICH-990825083117Z-1058@crianlarich.indigo-avs.com>
To: "'www-style@w3.org'" <www-style@w3.org>
Hi all,

is there any way using CSS of inserting text?  This would be useful
for consistent labelling.

What I am trying to do is give my web pages a common look by having
the heading preceded by the issue name.  It is currently done by
having an image which is changed every time the issue changes, but
that excludes the Lynx folks and those with images disabled.  I could
do it with SSI, but again, that feels kludgy.

Ideally I would like to be able to write

<h1 class="pagehead">Some Stuff</h1>

and have it render as

Dancing Forth Aug-Sep 1999: Some Stuff

Then when the issue changes, I just change the stylesheet and all
pages update.

If this is not currently supported, I could envisage something like

H1.pagehead
{
    prefix: "Dancing Forth Aug-Sep 1999: ";
    [other styles]
}

and I would expect the text to render according to the style it
prefixes.  I'm not sure whether arbitrary markup should be allowed,
due to the possibility of cycles (maybe expansion could be allowed
until a cycle occurs, or maybe that's just opening up too many cans
of worms).  However, it would be nice to have at least <br>, <hr>
and <img>.

Of course, I could see the use for suffix as well, though I don't
need it myself.

Is this currently available?  If so, what's the syntax?  If not, is
it worth considering for inclusion in a future version of CSS?

Thanks,

Ian
--
Ian Brockbank, Indigo Active Vision Systems, The Edinburgh Technopole,
Bush Loan, Edinburgh EH26 0PJ   Tel: 0131-475-7234  Fax: 0131-475-7201
work: ian@indigo-avs.com           personal: Ian.Brockbank@bigfoot.com
web: ScottishDance@bigfoot.com           http://www.scottishdance.net/
Received on Wednesday, 25 August 1999 04:30:56 GMT

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