Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    Senior Coder
    Join Date
    May 2004
    Posts
    1,441
    Thanks
    15
    Thanked 0 Times in 0 Posts

    pop out menu to show over flash

    I am using the following code to create a popout menu.

    How can I get this to always show on top of what's on the page (in this case a flash image)


    #catmenu ul{
    margin: 0;
    padding: 0;
    list-style-type: none;
    width: 130px; /* Width of Menu Items */
    border-bottom: 1px solid #F8F3EE;
    border-bottom-color: #F8F3EE;
    color: #A75936;
    }

    #catmenu ul li{
    position: relative;
    }

    /*Sub level menu items */
    #catmenu ul li ul{
    position: absolute;
    width: 160px; /*sub menu width*/
    top: 0;
    visibility: hidden;
    }

    /* Sub level menu links style */
    #catmenu ul li a{
    display: block;
    overflow: auto; /*force hasLayout in IE7 */

    text-decoration: none;
    padding: 1px 5px;
    background-color:#f8efe8;
    color: #A75936;
    }

    #catmenu ul li a:visited{
    color: #A75936;
    }

    #catmenu ul li a:hover{
    background-color:#f8efe8;
    background-position: left;
    padding-left:20px;
    }

  • #2
    Regular Coder
    Join Date
    Feb 2007
    Location
    near Washington, DC
    Posts
    135
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Don't know if you've solved this yet, but since no one else answered, I'd suggest you try adding #catmenu {z-index:100}. Since z-index is an inherited property, all the submenus should pick it up, and thus sit on top of other layers.

    I'm not sure how compatible this is with flash, though...
    Wilford Nusser
    Validate Your Code: (X)HTML CSS
    An HTML Email is NOT a Web Page: HTML Email Guide (1.2Mb pdf) Webmail CSS Support
    REGEX: Brought to you by Psychotic Crack-Smoking Monkeys

  • #3
    Regular Coder
    Join Date
    Jan 2007
    Posts
    213
    Thanks
    0
    Thanked 0 Times in 0 Posts
    z-index should work if not i have a line of code to add too the flash embed src at home
    Matthew Bagley
    Paramiliar Design Studios
    Website Design | Website Development | Search Engine Optimisation (SEO)

  • #4
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    Its the wmode parameter.
    Code:
    <param name="wmode" value="opaque">
    Possible values of wmode are opaque and transparent
    transparent allows the flash to be transparent allowing the background of the page to be seen and also allows html elements to go over the flash movie. Opaque just allows html elements to go above the movie.
    ||||If you are getting paid to do a job, don't ask for help on it!||||


  •  

    Posting Permissions

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