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
TimNo. CSS is only for visual presentation, not for content.Thanks. It is as I suspected.
Cheers!
TimCSS is only for visual presentation, not for content.Au contraire. See <!-- m --><a class="postlink" href="http://www.w3.org/TR/REC-CSS2/generate.html">http://www.w3.org/TR/REC-CSS2/generate.html</a><!-- m --> .Au contraire. See <!-- m --><a class="postlink" href="http://www.w3.org/TR/REC-CSS2/generate.html">http://www.w3.org/TR/REC-CSS2/generate.html</a><!-- m --> .
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.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()); ?>
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
TimNo. CSS is only for visual presentation, not for content.Thanks. It is as I suspected.
Cheers!
TimCSS is only for visual presentation, not for content.Au contraire. See <!-- m --><a class="postlink" href="http://www.w3.org/TR/REC-CSS2/generate.html">http://www.w3.org/TR/REC-CSS2/generate.html</a><!-- m --> .Au contraire. See <!-- m --><a class="postlink" href="http://www.w3.org/TR/REC-CSS2/generate.html">http://www.w3.org/TR/REC-CSS2/generate.html</a><!-- m --> .
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.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()); ?>