Forum How do I...?

re-use string of text

LolaK
Hi,
How do I re-use a string of text? I have a copyright declaration that is left justified on body pages, centred on last page, and inline text on my copyright page. Can I define that string in one place in my css and just re-use it, rather than having to update 3 places each time I need to update it?

thanks.
mikeday
Yes, using the string-set property and generated content, like this:
body { string-set: copyright "Some text" }

.copy { content: string(copyright) }

@page {
    @bottom { content: string(copyright) }
}
LolaK
Hi,
That works really well, but how can I make the string bold - in one place only?
thanks
LolaK
Sorry, ignore previous