Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Dec 2006
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Help with making a navigation bar.

    I've been attempting to make a navigation bar where to add a link one would have to change one master file. I attempted this with CSS but became stuck when it occurred to me that using
    Code:
    selector.class:after {content: "X"; }
    would not allow me import the entire navigation bar (which is in a list format). I've been looking for another method of doing this, but so far haven't found one.

    Has anyone got any suggestions of how I might go about 'importing', if that's an appropriate word, a snippet of HTML from another file? Or something similar so that every time I want to add a link to my navigation bar I won't have to edit each page.
    Last edited by Rob88; 12-22-2006 at 01:50 AM.

  • #2
    Master Coder Excavator's Avatar
    Join Date
    Dec 2006
    Location
    Alaska
    Posts
    9,667
    Thanks
    22
    Thanked 1,827 Times in 1,811 Posts
    Php includes. Works for me.
    Google it for a much better explanation than I could give.
    Validate often DURING development - Use it like a splelchecker | Debug during Development |Write it for FireFox, ignore IE
    Use the right DocType | Validate your markup | Validate your CSS | Why validating is good | Why tables are bad


  •  

    Posting Permissions

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