CSS
-Tricks
treehouse :
what would you like to learn today?
Web Design
Web Development
iOS Development
Show search box
Search
Search in:
All
Articles
Forums
Snippets
Videos
✕
Home
Forums
Snippets
Gallery
Videos
Almanac
Demos
Lodge
Navigation 'n' Search
Forums
Illustration by Nick Sirotich
Forums
»
CSS Combat
Static information ( Footer )
Luis
Permalink to comment
#
May 2008
Hey guys,
Is there a way to change the static text using CSS. ** example ** The copyright information on the footer of the page, If wish to update the year, I will have to go to every page to updated, is there a way to do this once with CSS?
Nodster
Permalink to comment
#
May 2008
don't use css, use a php include instead.
that way one file gets changed across all pages it is contained in.
then use css to style as you would normally
Edwin
Permalink to comment
#
May 2008
Totally agree with that :) This will do the trick:
<?php
print(\"© copyright \".date('Y'));
?>
pab
Permalink to comment
#
May 2008
what they've all said,
or do an HTML include.
Add a Comment
Is there a way to change the static text using CSS. ** example ** The copyright information on the footer of the page, If wish to update the year, I will have to go to every page to updated, is there a way to do this once with CSS?
that way one file gets changed across all pages it is contained in.
then use css to style as you would normally
or do an HTML include.