Forum Moderators: not2easy

Message Too Old, No Replies

Updating copyright date

Can CSS update the copyright notice?

         

pwagner

7:05 pm on Mar 7, 2006 (gmt 0)



Is there a way to update the copyright date of a website using CSS? That way when a new year arrives, I would only have to change the date once instead of on over a thousand pages.

DrDoc

7:11 pm on Mar 7, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Welcome to WebmasterWorld! [WebmasterWorld.com]

No, CSS can't do that. You probably want to look into either a JavaScript or PHP solution.

Fotiman

7:41 pm on Mar 7, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



As pointed out, CSS will not do that (well, technically you could use the :before or :after psuedo selectors to accomplish this, but it wouldn't work in IE). The best option would be to use some server technology like ASP, PHP, JSP, etc., to generate your copyright message. Since the copyright notice is content and not presentation or behavior, it would be ill-advised to try and accomplish this with CSS or JavaScript (both of which could be disabled for the person viewing your pages).