473,372 Members | 1,180 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,372 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 3762
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

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

Similar topics

4
by: Dave Patton | last post by:
Using my About page as an example: http://members.shaw.ca/davepatton/about.html What is the best/proper way to markup a page such as this that has "the main body" and "a navigation menu"? It...
0
by: Veli-Pekka Tštilš | last post by:
Hi, My first post here. I've found some serious accessibility flaws in the Python 2.4 docs and wish they could be rectified over time. I'm very new to Python and initially contacted docs at python...
1
by: Robert Neville | last post by:
I am having some trouble with some old code revolving around custom form navigation buttons. My main form has a sub-form with these custom navigation buttons. In other words, the code should be...
4
by: Sandy.Pittendrigh | last post by:
I don't want to get into a frames discussion here. We all know they have numerous drawbacks, especially with search engine visibility. (Google, ironically, uses framesets for displaying individual...
28
by: laredotornado | last post by:
Hi, Surprisingly, I can't get the drop down menus to work on PC IE 6. If you roll over "PRODUCTS", normally a drop down menu appears (on Safari and Firefox), but on PC IE, nada. ...
3
by: Paul | last post by:
I want the <div id="navigation"column to be the same color all the way to the bottom. The "background-image: url(bg_menu_tile.gif);" was a try to force it with a long 1-pixel graphic - didn't...
10
by: EA | last post by:
I am sure I must be missing something about building navigation bars with CSS. Yes it is a very clever and efficient way to format navigation structures on simple one navigation level webs, i.e....
1
by: quartzy | last post by:
I have a strict doc type: However, I am still unsure about css. Problems I have now are to do with floating both navigation lists. I have used tables and divs, as layouts are just too difficult for...
0
by: emalcolm_FLA | last post by:
Hello and TIA for your consideration. I have created several db's for a non-profit and they want custom navigation buttons to display "You are on the first record, last record, etc". With this...
0
by: tom59593 | last post by:
Hi there. I have been attempting (for a few days on end, sadly) to get a navigation section of my new site to work. Granted, this is the first time I've ever written CSS...although I had PLENTY of...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.