#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2003
    Location
    Los Angeles, CA
    Posts
    34
    Rep Power
    11

    Including a menu with CSS


    Hello,

    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.

    Pete
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Dec 2003
    Posts
    709
    Rep Power
    441
    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

    • Kravvitz agrees
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2003
    Location
    Los Angeles, CA
    Posts
    34
    Rep Power
    11
    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.
  6. #4
  7. No Profile Picture
    Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Dec 2003
    Posts
    709
    Rep Power
    441
    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.

IMN logo majestic logo threadwatch logo seochat tools logo