English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

As in, I want say a navigation bar to appear on the left of all my pages. I know how to make it, I just don't know how to get it to show up on all of my pages without manually putting in on each (such as through CSS)

2007-12-07 07:02:17 · 4 answers · asked by Spearfish 5 in Computers & Internet Programming & Design

Ok thanks Zoplax...would you be able to help me out with the syntax?

I've tried frames, but I don't like those - pretty bad for SEO and unprofessional.

2007-12-07 07:09:29 · update #1

4 answers

CSS would be the way to go. Have one file dedicated to different CSS attributes (in this case, position attributes), then simply reference that particular class or id in whatever file you want to place your navigation bar.

See what I mean? For example,on your css page you have something like this:

#nav {
position:
left:
etc...
}

then in your actual html or php or whatever file, just enclose your navigation code with this css code:



hope this helps

2007-12-07 07:19:04 · answer #1 · answered by Entfusion 3 · 0 0

I'd guess CSS would be the way to do it, you'd have a master page where your nav bar is on the left, then all other pages in your site would reference that page as its master page to reproduce that same layout.

EDIT: Anil M is describing what I'm talking about. Maybe find some free SEO-optimized website templates online and start by modifying those or at least seeing how they're put together.

2007-12-07 15:07:09 · answer #2 · answered by Anonymous · 0 0

If you have php or server-side includes, you can put the common elements (header, footer, navigation) in separate files and then include them in each page. This way, if you decide to change something in your nav bar, you only have to change it in the one file, not each page.

2007-12-07 15:29:33 · answer #3 · answered by daa 7 · 0 0

master pages or framesets

2007-12-07 15:06:28 · answer #4 · answered by chris m 3 · 0 0

fedest.com, questions and answers