View Full Version : CSS Navigation + Modular = how do I do it?
2nd February 07, 10:41 PM
I have no idea how to explain this so I guess I need to show you. if you go to http://stellarccs.com.au/solutions as an example the menu changes based on where you are on the site. Now if I create the site this using an include statement with a .php or .asp file for the menu (incase I want t add something down the line) then I can't have the classes or id's change in the include file, so how do I create a modular site and be able to change the menu based on where it is on the site?
3rd February 07, 12:18 AM
You can specify a value in your php/asp code according to clicked link. Let's say if the "about us" link was clicked on the starting page then you show a particular list of items in the menu on the target page. If the "Services" link was clicked then it show another list of items in the target page and so on. It's all a matter of server side scripting, not CSS.
Like in the example site you provided, it doesn't really matter wich items are specified in your php/asp code because ALL the CSS rules for the navigation menu are in one external file.
vBulletin® v3.8.4, Copyright ©2000-2013, Jelsoft Enterprises Ltd.