How to modularize CSS menus

code , html , php Victorville, United States
  • 12 years ago
    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 Tree 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. []( [Outsourcing software development](
  • 12 years ago
    Havent done PHP in ages, but you should be able to do something like this by using includes. You would basically create your menu as you would want it to work and then include the file in the pages that need it. HTH Si

Post a reply

Enter your message below

Sign in or Join us (it's free).


Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“Better train people and risk they leave – than do nothing and risk they stay.” - Anonymous