How to make a header of same links on all my web page in CSS so not to edit 40 pages?

Discussion in 'CSS' started by Etaria, Jul 15, 2006.

  1. #1
    My site is currently at: http://www.crochetgarden.com

    Is there a way to edit the CSS sheet to include a logo and a set of links so everytime I add a link I do not have to edit 40 plus pages?

    I coded the website myself and am new to HTML thus my code is probably horrid :) But have been learning as I go along...

    I am not even sure this can be done...

    When a person clicks to go to a specific page, such as "free patterns," I currently have that specific page link in the group of links not made as a link so they know what page they are on.

    If I am able to do it in CSS, how will they know what page they are on? I can edit to make the current link a different color I believe...

    Thank you in advance!
     
    Etaria, Jul 15, 2006 IP
  2. instyle

    instyle Guest

    Messages:
    314
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Not sure whats your question. But you can put logo in a header file and include it into as many page as you want.
     
    instyle, Jul 15, 2006 IP
  3. Shoemoney

    Shoemoney $

    Messages:
    4,474
    Likes Received:
    588
    Best Answers:
    0
    Trophy Points:
    295
    #3
    its all about the includes
     
    Shoemoney, Jul 15, 2006 IP
  4. Etaria

    Etaria Peon

    Messages:
    3
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Hmm how to explain.

    Basically, as you see here: http://www.crochetgarden.com

    I have the logo at the top, then links below.

    Now I am adding a bunch of links... I have about 30 or 40 pages that have these links right below the logo. What I do is download each page, edit them in an HTML editor to add the links, then upload them back. It is becoming very time-consuming.

    Thus, I am wondering how, using HTML, where I can edit one file which will then affect all the pages instead of editing each page by hand.
     
    Etaria, Jul 15, 2006 IP
  5. Etaria

    Etaria Peon

    Messages:
    3
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Shoemoney: What is includes and where do I find out how to make/use/learn/ about it? Would a beginner HTML be able to learn this? Is it HTML?
     
    Etaria, Jul 15, 2006 IP
  6. kk5st

    kk5st Prominent Member

    Messages:
    3,497
    Likes Received:
    376
    Best Answers:
    29
    Trophy Points:
    335
    #6
    Read this server side include how-to. It's written for Apache, but IIS (MS) uses the same syntax. In addition to web server includes, all server side scripting languages have include() functions. RTFM for the language of choice.

    cheers,

    gary
     
    kk5st, Jul 15, 2006 IP
  7. Shoemoney

    Shoemoney $

    Messages:
    4,474
    Likes Received:
    588
    Best Answers:
    0
    Trophy Points:
    295
    #7
    Shoemoney, Jul 15, 2006 IP
    kk5st likes this.
  8. pzn

    pzn Active Member

    Messages:
    575
    Likes Received:
    42
    Best Answers:
    0
    Trophy Points:
    70
    #8
    You should use PHP

    make a header.php and put the header on it.

    Then on everypage insert this

    <?php
    include ("header.php");
    ?>
     
    pzn, Jul 15, 2006 IP