SitePoint Sponsor

User Tag List

Results 1 to 5 of 5

Thread: Keep in Front

  1. #1
    SitePoint Member
    Join Date
    May 2006
    Posts
    9
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Keep in Front

    I'm using a JavaScript drop down menu and trying to figure out how to keep menu boxes in front of any other content. Thanks.

  2. #2
    SitePoint Wizard Pepejeria's Avatar
    Join Date
    Jan 2005
    Location
    Too far up north
    Posts
    1,566
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You mean html dropdowns? Or do you mean own HTML that looks like a menu?

    If it is the second answer then use the z-index CSS property.

  3. #3
    Programming Since 1978 silver trophybronze trophy felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, NSW, Australia
    Posts
    16,869
    Mentioned
    25 Post(s)
    Tagged
    1 Thread(s)
    You will also need to hide any select lists, iframes, and flash that the menu is required to appear in front of since each of these displays always in front of everything else in at least one browser.
    Stephen J Chapman

    javascriptexample.net, Book Reviews, follow me on Twitter
    HTML Help, CSS Help, JavaScript Help, PHP/mySQL Help, blog
    <input name="html5" type="text" required pattern="^$">

  4. #4
    SitePoint Member
    Join Date
    May 2006
    Posts
    9
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    This was JavaScript/CSS horizontal menu from the JavaScript Anthology. I found that if I removed the Dreamweaver layers appearing below the menu and position them manually, then the menu does come to the front, overlapping as it should.

  5. #5
    SitePoint Wizard Pepejeria's Avatar
    Join Date
    Jan 2005
    Location
    Too far up north
    Posts
    1,566
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Maybe to show some sample code could help


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •