SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Zealot think5577's Avatar
    Join Date
    Sep 2002
    Location
    Richmond, VA
    Posts
    122
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Want to change my nav table with CSS

    Hey everyone. Yet another CSS question.

    I have my photo site with the navigation in a table at the top. Since I'll be updating it very often, and not wanting to have to open each page and change the top table, I was wondering if there is a way I can make a CSS file with just my navigation in it, then put that in where the top table goes for the other pages?

    Im somewhat familair with CSS but no expert.

    If you wanna check out what Im talking about, its the second URL in my sig.

    Thanks.
    "Truth is a pathless land." - J. Krishnamurti


  2. #2
    SitePoint Zealot romance's Avatar
    Join Date
    Apr 2004
    Location
    UK
    Posts
    181
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    First of, excellent photos on that site, what sort of camera do you use?

    Secondly, the way to include the same part of a menu or page in many other pages is to use an include file. This can be done in any server language like php,asp or you can use normal server side includes.

    For php includes its simply a case of renaming your files from .html to .php then creating a file with all your navbar html in it. you then add the folllowing wherever you want to show the file:

    <?include("nameofNavbarFile.php");?>

  3. #3
    SitePoint Zealot think5577's Avatar
    Join Date
    Sep 2002
    Location
    Richmond, VA
    Posts
    122
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks for the compliment. It WAS a Fuji FinePix 3800 digital, until I dropped it and now its no more. Looking to maybe get another Fuji though.

    Im really not knowledgeable with PHP, thats why I was asking about CSS.

    Ill try what you suggested though.

    Thanks again.
    "Truth is a pathless land." - J. Krishnamurti



Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •