Hi All,
I’m having a problem with the project currently I’m working on. When the vertical menu drops down, the flash object in the web page comes on top and the menu is behind the flash object. Therefore the dropdown menu items cannot see. I’ve tried putting z-index into #menu vert, but its not solved my problem. Following is my menu CSS
#menu_vert {
position: relative;
z-index:10000;
display:block;
margin-left: 2px;
color: white;
background-image:url(uploads/images/menu_bg.jpg);
background-repeat:repeat-y;
background-position:left;
}
/* The wrapper clears the floating elements of the menu */
/* Fix for Opera 8 */
.clearb { clear: both; }
#menuwrapper {
/* Fix for Opera 8 */
/* overflow: hidden; */
width: 988px;
}
/* Set the width of the menu elements at second level. Leaving first level flexible. */
#primary-nav li li {
width: 200px;
}
/* Unless you know what you do, do not touch this */
#primary-nav, #primary-nav ul {
list-style: none;
margin: 0px;
padding: 0px;
}
#primary-nav ul {
position: absolute;
top: auto;
display: none;
}
#primary-nav ul ul {
margin-top: 1px;
margin-left: -1px;
left: 100%;
top: 0px;
}
#primary-nav li {
margin-left: -1px;
float: left;
}
#primary-nav li li {
margin-left: 0px;
margin-top: -1px;
float: none;
position: relative;
}
/* Styling the basic apperance of the menu elements */
#primary-nav a {
display: block;
padding: 5px 20px 7px 5px;
text-decoration: none;
color: #ffffff;
font-size:18px;
font-weight:bold;
}
/* Styling the basic apperance of the active page elements (shows what page in the menu is being displayed) */
/* Styling the basic apperance of the menuparents - here styled the same on hover (fixes IE bug) */
#primary-nav ul li.menuparent,
#primary-nav ul li.menuparent:hover,
#primary-nav ul li.menuparenth {
/* arrow for menuparents */
background-image: url(images/cms/arrow.gif);
background-position: center right;
background-repeat: no-repeat;
}
/* The magic - set to work for up to a 3 level menu, but can be increased unlimited */
/*
just add
#primary-nav li:hover ul ul,
#primary-nav li.menuparenth ul ul ul,
for fourth level
*/
#primary-nav ul,
#primary-nav li:hover ul,
#primary-nav li:hover ul ul,
#primary-nav li.menuparenth ul,
#primary-nav li.menuparenth ul ul {
display: none;
}
/* add
#primary-nav ul ul ul li:hover ul,
#primary-nav ul ul ul li.menuparenth ul,
for fourth level
*/
#primary-nav li:hover ul,
#primary-nav ul li:hover ul,
#primary-nav ul ul li:hover ul,
#primary-nav li.menuparenth ul,
#primary-nav ul li.menuparenth ul,
#primary-nav ul ul li.menuparenth ul {
display: block;
}
#primary-nav ul{
padding-top:2px;
border: 1px solid white;
}
/* IE Hacks */
#primary-nav li li {
float: left;
clear: both;
background-color:#556193;
}
#primary-nav li li a {
color:#FFFFFF;
padding: 1em 1em 1em 1em;
height: 1%;
font-size:12px;
font-weight:bold;
}
#primary-nav li li a:hover,
#primary-nav li li a.menuh,
#primary-nav li li a.menuparenth,
#primary-nav li li a.menuactiveh {
background-color: #E7AB0B;
}
Also for the content I’ve add div#content{
z-index:1;
}
U can see what I’m trying to tell in http://www.jeanmariecavada.eu/ when you mouse over to MPEs it has several dropdown menu items but the flash object comes on top of it. Is there any way to solve this problem or am I missing something (I’m not an expert with CSS)? Can some one help me on this?
Thanks
Chamara
[Solved] Menu overlapping with flash object
[Solved] Menu overlapping with flash object
Last edited by chamara on Mon Dec 17, 2007 7:24 am, edited 1 time in total.
Re: Menu overlapping with flash object
Ok guys I've solved the problem by assigning wmode="transparent" in the flash object.