Topic: How to modularize CSS menus

hello,

Here's a  question to be sure: how do I modularize CSS menus? In other words, I want to define a menu (e.g., orange Horizontal Menu) once, and then call/invoke it from any number of pages. Is this possible, or must I duplicate the HTML code in every page? Seems to me that last method would be inefficient, since a change to the menu would require a change to each and every page.

Thanks

http://www.infysolutions.com

Re: How to modularize CSS menus

Use partials.

Re: How to modularize CSS menus

If you don't have PHP, but you have Dreamweaver, you can create the navigation as a Library item. Whenever you need to update the navigation you make an edit to the library item and it updates all pages that reference that library item. You would still have to upload all pages that were changed, but it is quicker than having to edit every page!


______________
IT Support

Re: How to modularize CSS menus

Why don't you simply use external CSS file and include it in every page where you need a menu?