need assistance in figuring out how to get that drop down menu to sit on top of that flash container right below it. right now it shows underneath it when mouseover on main menu
below are the links to the two stylesheets working on this page
/* remove all list stylings */ .menu, .menu ul { margin: 0; padding: 0; list-style-type: none; display: block; }
.menu li { margin: 0; padding: 0; border: 0; display: block; float: left; /* move all main list items into one row, by floating them */ position: relative; /* position each LI, thus creating potential IE.win overlap problem */ z-index: 5; /* thus we need to apply explicit z-index here... */ }
.menu li:hover { z-index: 2; /* ...and here. this makes sure active item is always above anything else in the menu */ white-space: normal;/* required to resolve IE7 :hover bug (z-index above is ignored if this is not present) see http://www.tanfa.co.uk/css/articles/pure-css-popups-bug.asp for other stuff that work */ }
.menu li li { float: none;/* items of the nested menus are kept on separate lines */ }
.menu ul { visibility: hidden; /* initially hide all submenus. */ position: absolute; z-index: 10; left: 0; /* while hidden, always keep them at the top left corner, */ top: 0; /* to avoid scrollbars as much as possible */ }
.menu li:hover>ul { visibility: visible; /* display submenu them on hover */ top: 100%; /* 1st level go below their parent item */ }
.menu li li:hover>ul { /* 2nd+ levels go on the right side of the parent item */ top: 0; left: 100%; }
/* -- float.clear -- force containment of floated LIs inside of UL */ .menu:after, .menu ul:after { content: \".\"; height: 0; display: block; visibility: hidden; overflow: hidden; clear: both; } .menu, .menu ul { /* IE7 float clear: */ min-height: 0; } /* -- float.clear.END -- */
/* -- sticky.submenu -- it should not disappear when your mouse moves a bit outside the submenu YOU SHOULD NOT STYLE the background of the \".menu UL\" or this feature may not work properly! if you do it, make sure you 110% know what you do */ .menu ul { background-image: url(empty.gif); /* required for sticky to work in IE6 and IE7 - due to their (different) hover bugs */ padding: 10px 30px 30px 30px; margin: -10px 0 0 -30px; /*background: #f00;*/ /* uncomment this if you want to see the \"safe\" area. you can also use to adjust the safe area to your requirement */ } .menu ul ul { padding: 30px 30px 30px 10px; margin: -30px 0 0 -10px;
} /* -- sticky.submenu.END -- */
/* - - - ADxMenu: DESIGN styles [ OPTIONAL, design your heart out :) ] - - - */
.menu, .menu ul li { color: #fff; background: url(images/nav-background.gif) repeat-x; font-family: arial,trebuchet ms; font-size: 90%; font-weight: bold; padding-left: 15px;
.menu li li { /* create borders around each item */ background: #1b297e; font-family: arial,trebuchet ms; font-size: 100%; padding-left: 0px;
}
.menu ul>li + li { /* and remove the top border on all but first item in the list */ border-top: 0;
}
.menu li li a:hover{ /* create borders around each item */ background: #ba1c1d;
}
.menu li li:hover>ul { /* inset 2nd+ submenus, to show off overlapping */ top: 5px; left: 90%;
}
/* special colouring for \"Main menu:\", and for \"xx submenu\" items in ADxMenu placed here to clarify the terminology I use when referencing submenus in posts */ .menu>li:first-child>a { color: #fff; }
/* this rules improves accessibility - if Javascript is disabled, the entire menu will be visible of course, that means that it might require different styling then. in which case you can use adxie class - see: aplus.co.yu/adxmenu/examples/ie6-double-style/ */ .menu ul { visibility: visible; position: static; }
#domticker div{ /*IE6 bug fix when text is bold and fade effect (alpha filter) is enabled. Style inner DIV with same color as outer DIV*/ background-color: #ba1c1d; }
.chromestyle:after{ /*Add margin between menu and rest of content in Firefox*/ content: \".\"; display: block; height: 0; clear: both; visibility: hidden; }
.chromestyle ul{ width: 960px; height: 60px; padding: 21px 4px; margin: 0; text-align: center; /*set value to \"left\", \"center\", or \"right\"*/ }
.chromestyle ul li{ display: inline;
}
.chromestyle ul li a{ color: #ffffff; padding: 21px 13px; margin: 0; text-decoration: none; font-weight: bold; font-family: arial,verdana, sans-serif; font-size: 14px;
}
.chromestyle ul li a:hover, .chromestyle ul li a.selected{ /*script dynamically adds a class of \"selected\" to the current active menu item*/ text-decoration: underline; color: #fff;/*THEME CHANGE HERE*/
}
#chromemenu ul .contact a { background-image: none; }
/* ######### Style for Drop Down Menu ######### */
just realized w/o doing much browser checking that the issue seems to be in FF 2 & 3 as of right now. IE 6 & 7 show it working properly. so i guess the issue is narrowed down somewhat
Ok I can't really look at the code now and I did this at work a while ago but I can't find the test files when I was experimenting with it.
What you gotta do though is make the flash windowmode transparent, easiest way is in flash when you publish it. You then gotta put it in a div and make it.. I think -1 z-index. then in the css for the drop downs set it as 2 for zindex.
Again I will look for the file and have a look at the code and get you something when I get home. But there's a start...
add a parameter when you load the flashfile on the page setting wmode to either opaque or transparent.. opaque is easier on the processor, so I favor that personally.
Other than that, just remember that z-index only works on absolute & relatively positioned elements. :)
I'm working on a site currently that uses a transparent png as a frame that sits over the top of a flash slideshow, and a dropdown menu with transparent pngs that drop down over the top of both the flash & png frame.
I'm working on a site currently that uses a transparent png as a frame that sits over the top of a flash slideshow, and a dropdown menu with transparent pngs that drop down over the top of both the flash & png frame.
Sounds like an absolute nightmare to get that to work in IE6 :lol:
Sounds like an absolute nightmare to get that to work in IE6 :lol:
Actually, the only thing I'm struggling with at the moment is that the dropdowns aren't working at all in IE, but I haven't put much work into it yet either.. the overlays and such are working just fine..
Most likely I'll end up with some custom code that only runs for IE browsers. *shrug* no big whoop. ;)
need assistance in figuring out how to get that drop down menu to sit on top of that flash container right below it. right now it shows underneath it when mouseover on main menu
below are the links to the two stylesheets working on this page
main.css - styles elements minus the nav
chrometheme/chromestyle.css - controls/styles the nav
.chromestyle{
width: 960px;
height: 60px;
background: url(../images/chromebg.gif) repeat-x;
}
.chromestyle:after{ /*Add margin between menu and rest of content in Firefox*/
content: \".\";
display: block;
height: 0;
clear: both;
visibility: hidden;
}
.chromestyle ul{
width: 960px;
height: 60px;
padding: 21px 4px;
margin: 0;
text-align: center; /*set value to \"left\", \"center\", or \"right\"*/
}
.chromestyle ul li{
display: inline;
}
.chromestyle ul li a{
color: #ffffff;
padding: 21px 13px;
margin: 0;
text-decoration: none;
font-weight: bold;
font-family: arial,verdana, sans-serif;
font-size: 14px;
}
.chromestyle ul li a:hover, .chromestyle ul li a.selected{ /*script dynamically adds a class of \"selected\" to the current active menu item*/
text-decoration: underline;
color: #fff;/*THEME CHANGE HERE*/
}
#chromemenu ul .contact a {
background-image: none;
}
/* ######### Style for Drop Down Menu ######### */
.dropmenudiv{
position:absolute;
top: 0;
border-bottom-width: 0;
line-height:18px;
z-index:9999;
background-color: #1c2a7f;
width: 230px;
visibility: hidden;
filter: progid:DXImageTransform.Microsoft.Shadow(color=#CACACA,direction=135,strength=4); /*Add Shadow in IE. Remove if desired*/
}
.dropmenudiv a{
width: auto;
display: block;
padding: 10px 15px;
margin: 0;
text-decoration: none;
font-weight: bold;
font-family: arial,verdana, sans-serif;
font-size: 14px;
color: #ffffff;
z-index:9999;
}
* html .dropmenudiv a{ /*IE only hack*/
width: 100%;
}
.dropmenudiv a:hover{ /*THEME CHANGE HERE*/
text-decoration: underline;
background: #132072;
z-index:9999;
}
Thanks
What you gotta do though is make the flash windowmode transparent, easiest way is in flash when you publish it.
You then gotta put it in a div and make it.. I think -1 z-index. then in the css for the drop downs set it as 2 for zindex.
Again I will look for the file and have a look at the code and get you something when I get home.
But there's a start...
Catch you soon
Other than that, just remember that z-index only works on absolute & relatively positioned elements. :)
I'm working on a site currently that uses a transparent png as a frame that sits over the top of a flash slideshow, and a dropdown menu with transparent pngs that drop down over the top of both the flash & png frame.
Sounds like an absolute nightmare to get that to work in IE6 :lol:
Actually, the only thing I'm struggling with at the moment is that the dropdowns aren't working at all in IE, but I haven't put much work into it yet either.. the overlays and such are working just fine..
Most likely I'll end up with some custom code that only runs for IE browsers. *shrug* no big whoop. ;)