|
Posted by Beauregard T. Shagnasty on 06/16/07 12:59
Adrienne Boswell wrote:
> Hans-Peter Diettrich wrote:
>> Ed Seedhouse wrote:
>> [cbnewman@gmail.com wrote:]
>>>> if I have a footer that I want to be displayed on every page but I
>>>> only want to update it in one place (perhaps a single HTML file)
>>>> how can I get it to display on every page on my site?
>>>
>>> Not with CSS.
>>
>> Why not? Can a CSS file not contain visible text?
>
> No, an external style sheet is just that, a Style Sheet, only
> affecting presentation of the document's markup. The only time you
> would see text from a stylesheet is in the case of the Content
> property, used in conjunction with :before and :after
> pseudo-elements.
...with the caveat that it will not work in the oft-used browser-like
operating system component.
#contentbox:after {
content: "Copyright 2007. All rights reserved.";
}
Note you can't place any HTML in this content.
--
-bts
-Motorcycles defy gravity; cars just suck
Navigation:
[Reply to this message]
|