Forum Moderators: not2easy

Message Too Old, No Replies

Changing Menu Items

Can you change the items on a menu just by changing the css file?

         

mistah

2:47 pm on Dec 1, 2003 (gmt 0)

10+ Year Member



I'm just programing my first wesite using css. I love the idea that I can change the font sizes, colours, etc... just by changing the css file.

However, what would be really useful is to be able to change the items in menu bars. For example, if I sell three types of widget, I would have links to green widgets, yellow wodgets and blue widgets in the menu bar. If I decided to add red widgets to my range I would normally have to change the code on each page to include a link to my new "red widget" page in the menu bar. Is it possible to simplify this by somehow specifying the text of the menu in the css file. Or is there some other way of doing the same thing?

Sinner_G

2:53 pm on Dec 1, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You can't do that in CSS, what you are looking for are server side includes (a site search should give you some starting points).

mistah

4:50 pm on Dec 1, 2003 (gmt 0)

10+ Year Member



Thanks, Sinner_G.

I've checked it out and it seems that Server Side Includes are exactly what I need!