Click to See Complete Forum and Search --> : Inserting Year With CSS
tim042849
01-23-2006, 09:24 PM
Hi:
Is it possible to insert the year into a document using CSS?
NOTE: I know how to do it with javascript and SSI, but am
just curious to see if CSS would do it.
Pointers to documentation is welcomed also.
Thanks
Tim
NogDog
01-23-2006, 09:28 PM
No. CSS is only for visual presentation, not for content.
tim042849
01-23-2006, 10:08 PM
Thanks. It is as I suspected.
Cheers!
Tim
Charles
01-23-2006, 10:22 PM
CSS is only for visual presentation, not for content.Au contraire. See http://www.w3.org/TR/REC-CSS2/generate.html .
NogDog
01-23-2006, 10:34 PM
Au contraire. See http://www.w3.org/TR/REC-CSS2/generate.html .
Yeah, yeah, there's a very limited ability to generate static content, list enumerators, etc.; but no way to display, for instance, dynamic content such as the current year.
pcthug
01-24-2006, 02:18 AM
Cascading Style Sheets (CSS) is a simple mechanism for adding style (e.g. fonts, colors, spacing) to Web documents.
Thats what php is for:
<?php echo date("Y", mktime()); ?>