treehouse : what would you like to learn today?
Web Design Web Development iOS Development

Static information ( Footer )

  • 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?
  • 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
  • Totally agree with that :) This will do the trick:


    <?php
    print(\"&copy; copyright \".date('Y'));
    ?>
  • what they've all said,

    or do an HTML include.