471,598 Members | 1,186 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,598 software developers and data experts.

Navigation bar

17
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.
Sep 22 '07 #1
7 3663
phvfl
173 Expert 100+
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.
Sep 22 '07 #2
scf1984
17
That's exactly what I did, thanks!


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.
Sep 22 '07 #3
drhowarddrfine
7,435 Expert 4TB
Well, if you are still interested, this is easily accomplished with html/css and no programming language.
Sep 22 '07 #4
scf1984
17
I am still interested...
Please tell me how.


Well, if you are still interested, this is easily accomplished with html/css and no programming language.
Sep 23 '07 #5
drhowarddrfine
7,435 Expert 4TB
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).
Sep 23 '07 #6
scf1984
17
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...
Sep 26 '07 #7
drhowarddrfine
7,435 Expert 4TB
Look at Listamatic and look at the navbar examples.
Sep 27 '07 #8

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

4 posts views Thread by Dave Patton | last post: by
reply views Thread by Veli-Pekka Tštilš | last post: by
1 post views Thread by Robert Neville | last post: by
4 posts views Thread by Sandy.Pittendrigh | last post: by
28 posts views Thread by laredotornado | last post: by
10 posts views Thread by EA | last post: by
1 post views Thread by quartzy | last post: by
reply views Thread by emalcolm_FLA | last post: by
2 posts views Thread by XIAOLAOHU | last post: by
reply views Thread by Anwar ali | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.