Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 5 of 5
Like Tree1Likes
  • 1 Post By webforwork

Thread: Prevent css dropdown menu going behind embedded flash video

  1. #1
    Junior Member
    Join Date
    May 2015
    Posts
    5
    Member #
    49697
    Liked
    1 times

    Prevent css dropdown menu going behind embedded flash video

    I have a css dropdown menu at the top of my page. One of the drop downs goes under a flash video I have embedded on my page. Can I make it so the dropdown menu appears above the video?

  2.  

  3. #2
    Junior Member
    Join Date
    May 2015
    Posts
    5
    Member #
    49697
    Liked
    1 times
    I've tried z-index but no luck.

  4. #3
    Senior Member Ronald Roe's Avatar
    Join Date
    Mar 2011
    Location
    Oklahoma City
    Posts
    3,141
    Member #
    27197
    Liked
    959 times
    Make sure the menu's position value is set to something other than the default (static). Then, increase the z-index value of the menu until it shows in front.
    Ron Roe
    Web Developer
    "If every app were designed using the same design template, oh wait...Bootstrap."

  5. #4
    Junior Member
    Join Date
    May 2015
    Posts
    5
    Member #
    49697
    Liked
    1 times
    I tried that with the following CSS code:

    nav ul li ul {
    padding: 0;
    position: absolute;
    top: 25px;
    left: 0;
    width: 210px;
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
    box-shadow: none;
    display: none;
    opacity: 0;
    visibility: hidden;
    -webkit-transiton: opacity 0.2s;
    -moz-transition: opacity 0.2s;
    -ms-transition: opacity 0.2s;
    -o-transition: opacity 0.2s;
    -transition: opacity 0.2s;
    z-index: 5;

    #welcomeFlash {
    float: left;
    padding-top: 3px;
    padding-left: 2px;
    position: relative;
    z-index: 1;
    }
    And it didn't work. I also tried setting the entire nav class to relative and z-index:5; but still no change in the behavior. I am self taught so I'm probably missing something obvious but I can't figure it out for the life of me.

  6. #5
    Junior Member
    Join Date
    May 2015
    Posts
    5
    Member #
    49697
    Liked
    1 times
    A little deeper research got me the answer. The "wmode" parameter for the flash embed has to be set to transparent or else it will appear above everything.
    Ronald Roe likes this.


Remove Ads

Posting Permissions

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

Search tags for this page

bootstrap menu behind flash

Click on a term to search for related topics.
All times are GMT -6. The time now is 11:49 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com