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 3 of 3
  1. #1
    Regular Coder
    Join Date
    Jul 2011
    Posts
    118
    Thanks
    6
    Thanked 0 Times in 0 Posts

    CSS Basic: Making a standard navbar

    Hi all,

    Very new to CSS here. Basically, I have a header, footer and navbar for my website which will be the same on every page. What I'd like is a way to call it onto every page from one place (pref. the style sheet if possible) instead of having to place it manually on each page which obviously would have major implications on site maintenance and updates.

    So what I'm after is an easy way of applying my header (which will contain the navbar), and my footer to every page on the site without them being actually embedded within each one.

    Thanks in advance and sorry for my noobness.

  • #2
    Senior Coder
    Join Date
    Aug 2010
    Location
    High Point, NC
    Posts
    3,338
    Thanks
    5
    Thanked 363 Times in 360 Posts
    google server side includes.

    Basically you create a file, whether its in PHP, Coldfusion, asp.Net, or whatever language you choose, then in this file you code your navigation menu...no html or body tags.

    Then each page you want that navbar, you insert a simple, single line of code(language specific for each one) and the nav menu will be "included".

    Of course, as you may already realize, the advantage to this is that you can change the menu as often as you see fit and have need of, and the changes will be reflected in every instance of the include for every page.
    Teed

  • #3
    New to the CF scene
    Join Date
    Jul 2011
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    youk

    People are constantly looking for homemade goods. Google launched the keyword, to cater to this attitude. The company initiated the use of adwords keyword search things and Search Query Performance Report to find higher performing keywords. oakley store
    oakley prescriptionoakley dispatch
    cheap oakley sunglasses


  •  

    Posting Permissions

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