Hey everyone I got a question:
I have a unordered list in HTML that I'm using for a menu -- I made the list a menu class and made the menu class float in the CSS.
The problem is, what happens when I want to change what's in my menu? I plan to have 100+ pages on the site, so it would be completely unfeasible to change the HTML menu on every page whenever I want to change the menu contents or links.
Basically, I want the changeability/flexibility of an externally linked JS menu, but without any JS. Can I code the <ul> into the CSS and then link rel the CSS so that the menu shows up on every page from the CSS and not from internal HTML?
Thanks in advance,
ZekYou don't want to know how often this question gets asked. What you want to do is very simply but you don't do it with CSS and you don't do it with JavaScript. You use some sort of server side scripting. Just what sort will depend upon what is supported by your server.Are you suggesting that I use php or some similar code?
Is this just not possible with only HTML and CSS?Originally posted by Zekintha
Are you suggesting that I use php or some similar code?
Is this just not possible with only HTML and CSS?
That is exactly what he's saying. And he is exactly correct. You have to use a server-side language and include the seperate file. Then you update that included file whenever you want and the whole site will react accordingly. Neither HTML nor CSS have this capability, and JavaScript is capable but not reliable -- it is not enabled on approximately 10% of the computers on the Internet (as of Dec., 2004).Instead of using a server side scripting language or server side includes, I use UltraEdit as my text editor to write my code. It has a 'replace in files' function that works like a 'replace all' but it replaces every occurance in the specified directory (even in subdirectories if you want). I can change all 420 pages in a matter of seconds. Don't know what I'd do without it.Originally posted by rsd
Instead of using a server side scripting language or server side includes, I use UltraEdit as my text editor to write my code. It has a 'replace in files' function that works like a 'replace all' but it replaces every occurance in the specified directory (even in subdirectories if you want). I can change all 420 pages in a matter of seconds. Don't know what I'd do without it.
UltraEdit, huh? Sold. Does it work on Windows? Where can I get it?
Edit: never mind, I searched for it. Thanks. I may end up tossing my Crimson Editor now. Wow...I'll try it out~
What's the oldest version that has that feature of replacing text?
I have a unordered list in HTML that I'm using for a menu -- I made the list a menu class and made the menu class float in the CSS.
The problem is, what happens when I want to change what's in my menu? I plan to have 100+ pages on the site, so it would be completely unfeasible to change the HTML menu on every page whenever I want to change the menu contents or links.
Basically, I want the changeability/flexibility of an externally linked JS menu, but without any JS. Can I code the <ul> into the CSS and then link rel the CSS so that the menu shows up on every page from the CSS and not from internal HTML?
Thanks in advance,
ZekYou don't want to know how often this question gets asked. What you want to do is very simply but you don't do it with CSS and you don't do it with JavaScript. You use some sort of server side scripting. Just what sort will depend upon what is supported by your server.Are you suggesting that I use php or some similar code?
Is this just not possible with only HTML and CSS?Originally posted by Zekintha
Are you suggesting that I use php or some similar code?
Is this just not possible with only HTML and CSS?
That is exactly what he's saying. And he is exactly correct. You have to use a server-side language and include the seperate file. Then you update that included file whenever you want and the whole site will react accordingly. Neither HTML nor CSS have this capability, and JavaScript is capable but not reliable -- it is not enabled on approximately 10% of the computers on the Internet (as of Dec., 2004).Instead of using a server side scripting language or server side includes, I use UltraEdit as my text editor to write my code. It has a 'replace in files' function that works like a 'replace all' but it replaces every occurance in the specified directory (even in subdirectories if you want). I can change all 420 pages in a matter of seconds. Don't know what I'd do without it.Originally posted by rsd
Instead of using a server side scripting language or server side includes, I use UltraEdit as my text editor to write my code. It has a 'replace in files' function that works like a 'replace all' but it replaces every occurance in the specified directory (even in subdirectories if you want). I can change all 420 pages in a matter of seconds. Don't know what I'd do without it.
UltraEdit, huh? Sold. Does it work on Windows? Where can I get it?
Edit: never mind, I searched for it. Thanks. I may end up tossing my Crimson Editor now. Wow...I'll try it out~
What's the oldest version that has that feature of replacing text?