View Full Version : CSS Nav bar
08-14-2009, 07:23 PM
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
08-14-2009, 10:02 PM
Put the css and java in separate files and reference them.
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)
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.)
<link href="styles.css" rel="stylesheet" type="text/css"
any changes you do in your css file will affect all pages with reference to your css file.
Hope this helps
09-05-2009, 10:38 PM
use php. make a file called menu.php and put the menu in there. then put
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.
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,....
Powered by vBulletin® Version 4.2.0 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.