Grow your CSS skills. Land your dream job.

Static information ( Footer )

  • # May 29, 2008 at 2:23 pm

    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?

    # May 29, 2008 at 3:03 pm

    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

    # May 29, 2008 at 4:10 pm

    Totally agree with that :) This will do the trick:

    Code:
    < ?php
    print("© copyright ".date('Y'));
    ?>
    pab
    # May 29, 2008 at 4:38 pm

    what they’ve all said,

    or do an HTML include.

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".