Navigation bar

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • scf1984
    New Member
    • Sep 2007
    • 17

    Navigation bar

    How would it be best to apply a navigation bar to a website?

    That is, a bar which links you to various pages in the website and appears on every page.
  • phvfl
    Recognized Expert New Member
    • Aug 2007
    • 173

    #2
    Hi,

    You would be best having the nav bar kept in a file that is included in the HTML by one of a few different methods (depending on your server side language). Server side includes would be the method of choice for PHP and classic ASP, a user control in ASP.NET 1.1 or using master pages in ASP.NET 2.0 and later.

    The advantage of having the nav bar in a single external file that is used by all pages is that if you need to make changes then doing so in one place would apply the change on all of the relevant pages.

    Comment

    • scf1984
      New Member
      • Sep 2007
      • 17

      #3
      That's exactly what I did, thanks!


      Originally posted by phvfl
      Hi,

      You would be best having the nav bar kept in a file that is included in the HTML by one of a few different methods (depending on your server side language). Server side includes would be the method of choice for PHP and classic ASP, a user control in ASP.NET 1.1 or using master pages in ASP.NET 2.0 and later.

      The advantage of having the nav bar in a single external file that is used by all pages is that if you need to make changes then doing so in one place would apply the change on all of the relevant pages.

      Comment

      • drhowarddrfine
        Recognized Expert Expert
        • Sep 2006
        • 7434

        #4
        Well, if you are still interested, this is easily accomplished with html/css and no programming language.

        Comment

        • scf1984
          New Member
          • Sep 2007
          • 17

          #5
          I am still interested...
          Please tell me how.


          Originally posted by drhowarddrfine
          Well, if you are still interested, this is easily accomplished with html/css and no programming language.

          Comment

          • drhowarddrfine
            Recognized Expert Expert
            • Sep 2006
            • 7434

            #6
            After re-reading this thread, are you looking for something like phvfl suggested, ie, something in one place/file that is loaded in to each page? An "include" file can do this but I was thinking you were just looking for the html/css to create a nav bar (and I assume a horizontal one).

            Comment

            • scf1984
              New Member
              • Sep 2007
              • 17

              #7
              Originally posted by drhowarddrfine
              After re-reading this thread, are you looking for something like phvfl suggested, ie, something in one place/file that is loaded in to each page? An "include" file can do this but I was thinking you were just looking for the html/css to create a nav bar (and I assume a horizontal one).
              I am looking for expanding my knowledge as far as I can.
              I do not know how to use css yet, and would like to, so an example could benefit me alot...

              Comment

              • drhowarddrfine
                Recognized Expert Expert
                • Sep 2006
                • 7434

                #8
                Look at Listamatic and look at the navbar examples.

                Comment

                Working...