AJAX Forums

Menu Control via CSS?

This is a discussion on Menu Control via CSS? within the XHTML and CSS forums, part of the Beginners AJAX category; It must be possible some way to control the menu system on a website by only editing one file, because I run 4 websites in one and I have to ...


Go Back   AJAX Forums > Beginners AJAX > XHTML and CSS

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
Old 05-20-2007, 12:12 PM   #1 (permalink)
Junior Member
 
Join Date: May 2007
Posts: 1
Rep Power: 0 Sam Braidley is on a distinguished road
Menu Control via CSS?

It must be possible some way to control the menu system on a website by only editing one file, because I run 4 websites in one and I have to change the menu very often and with loads of pages its takes a long time to edit them all so is it possible to use the CSS to control the menu links?If so how or any other way of doing it.
__________________
Sam Braidley is offline   Reply With Quote
Old 05-20-2007, 06:12 PM   #2 (permalink)
Junior Member
 
Join Date: May 2007
Posts: 1
Rep Power: 0 Robb in Highlands is on a distinguished road
If you want to just change the appearance, then yes, use the .css file. If, however, you want to change the contents regularly, that's a different story.The easiest thing is to cut the entire menu code from your pages, and put in a separate menu file. Then, using 1 line of code on your pages, have them load the menu file, via server side includes. That way, you change the menu file, and all pages that load it are automagically replaced with the new one.































httpd.apache.org
__________________
Robb in Highlands is offline   Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes


Similar Threads

Thread Thread Starter Forum Replies Last Post
AJAX Jobs : Tree menu to database by KAN admin AJAX Freelance Jobs 0 07-16-2008 02:41 PM
how to create a menu by reading XML using yahooUI? chalagalla s XML and XSLT 0 11-12-2007 09:30 AM
CSS menu help needed with FireFox? yoofi1 XHTML and CSS 3 06-20-2007 02:06 PM
How do you control the height of DIV section using CSS? SwissCheeseo XHTML and CSS 3 06-08-2007 03:51 PM
How To Control Your Browsers History prabhu AJAX Articles 0 11-22-2006 07:13 AM


All times are GMT -4. The time now is 08:07 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 RC5
Copyright ©2006 - 2008, AJAXwith.com