External CSS Menu file
External CSS Menu file
Is there a way to use an external CSS menu file for all web pages on site? Just edit CSS menu, then upload it and will apply for all pages. Not have to copy and paste on very site page which is some 50+ pages. Need example on how to do this.
Re: External CSS Menu file
You can't do it with simple HTML but you can do it with server scripting language such as PHP. Put the menu code in another file (e.g. menu.php) and just include this file in all your pages in the right place.
Alternatively Apache web server offers something called server side includes: http://httpd.apache.org/docs/2.4/howto/ssi.html
Alternatively Apache web server offers something called server side includes: http://httpd.apache.org/docs/2.4/howto/ssi.html
Blumentals Software Programmer
-
- Posts: 25
- Joined: Sun Dec 28, 2014 7:11 am
Re: External CSS Menu file
I use an external PHP file that has all the EasyCSS menu code in there. Works like a charm... all the pages on the site in question are PHP.