Log in

View Full Version : CSS Nav bar



DIYPARTYHIRE
08-14-2009, 07:23 PM
Hey

i currentley use a css and java based nav bar, but keep getting fed up when i change something on it that i then have to go and change it on all 50+ pages

is there any way i can get the code to look for 1 single nav bar? that way i can just change it once

thanks

:D

bluewalrus
08-14-2009, 10:02 PM
Put the css and java in separate files and reference them.

Beverleyh
08-15-2009, 12:35 AM
try the link in my post in this thread: http://www.dynamicdrive.com/forums/showthread.php?t=47165 (4th post down)

qikfire
09-02-2009, 05:38 PM
Put something like this in your HEAD section.

(This assumes your css file is named styles and that its in the same folder as your html file, amend as required.)

EG

<link href="styles.css" rel="stylesheet" type="text/css"
media="screen" />

any changes you do in your css file will affect all pages with reference to your css file.

Hope this helps
Qikfire

fg123
09-05-2009, 10:38 PM
use php. make a file called menu.php and put the menu in there. then put

<?php include("menu.php");?>
at where you want to make the menu appear.
assuming that the menu.php is in the same directory as the page. If not, change it.

RobbieSherre
09-07-2009, 12:44 AM
You can use a find and replace editor, I use Dreamweaver when I am working on a huge site, I usually code in PHP and use includes like what was suggested earlier, "<?php include("menu.php");?>" it is the best way, but if you have Dreamweaver use the find and replace feature,....

BEST~
RS