1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Need CSS help that is not XF related

Discussion in 'Off Topic' started by Elizabeth, Jan 6, 2011.

  1. Elizabeth

    Elizabeth Well-Known Member

    I have a personal site that has a good 12-20 pages and at the bottom of each page has a credit line.

    What I need to do is create the external stylesheet that will also include the credit line so I don't have to go in and update each page manually.

    I already have an external stylesheet for the site but have yet to figure out how to add the credits that are at the bottom of the page to that stylesheet. You can see it here: Ramsey and Taylor Ancestors
    The part I want to add to the style sheet is this part:
    Code:
    <div align="center"><a href="http://www.gblcreations.com/"><img alt="gblcreations logo" longdesc="gblcreationslogo" src="graphics/GraphicsByLiz_ButterflyBlinkieByLiz.gif" class="style6" border="0" height="50" width="150" /></a>
    <p class="style5"><b><font class="fsx07" color="#ffffff" face="Monotype Corsiva">Graphics on this page courtesy of <strong>©GBLCreations 2008 - 2011</strong></font></b></p></div>
    Help, please.

    Liz
     
  2. jmurrayhead

    jmurrayhead Well-Known Member

    You can't add HTML to a style sheet. Typically, you would have a separate HTML or PHP file that you would include on each page.

    Code:
    <?php include("credits.html"); ?> 
     
  3. Elizabeth

    Elizabeth Well-Known Member

    Okay, so how can I add it with the entire site being html based? Is there a way or am I stuck updating that piece of code by hand?
     
  4. jmurrayhead

    jmurrayhead Well-Known Member

    You can use an include command in your HTML files:
    Code:
    <!--#include virtual="credits.html" -->
    You will have to manually edit all the files for this to work, though. When I used to do plain static HTML pages, I used to create include files for things like navigation, footers, headers and anything that I would reuse throughout the site. It was a sort of template so that if I ever wanted to change the header, for example, I could simply edit the header.html file and the changes would be reflected everywhere that I included header.html.
     
    Elizabeth likes this.
  5. Elizabeth

    Elizabeth Well-Known Member

    Thank you for your help.
     
  6. jmurrayhead

    jmurrayhead Well-Known Member

    You'r welcome :)
     

Share This Page