April 10th, 2013, 07:21 PM
Including a menu with CSS
Our home page has menu that stretches across the top of the page with 6 links. Each one of these links shows a drop down with several more links. All of these drop downs are coded onto the home page as divs. But at this point the code on our home page is very cluttered, mainly due to all of these dropdown divs taking up so much space. What I'd like to do is put all of the dropdowns in a separate file and reference them in JS or CSS somehow. I know I can use a server side include of some sort, but I'd rather do this in CSS or JS if possible.
April 11th, 2013, 10:02 AM
You want to do it in CSS or JS because...? The server side method is the best way to do it.
Comments on this post
April 11th, 2013, 12:02 PM
OK, is the code from a server side include hidden from the user in View --> Source? If so, that's the way I want to do it.
April 11th, 2013, 01:48 PM
Are you trying to hide the code that says "include this file", or the code of the menu itself? The "include this file" code is hidden. The menu code can't be hidden.