View Full Version : Get menu on top of slideshow
tmurphy218
10-04-2012, 07:02 AM
in need of how to make my menu (http://www.dynamicdrive.com/dynamicindex1/anylinkcss.htm) come out on top of Ultimate Fade In Slideshow v2.0 (http://www.dynamicdrive.com/dynamicindex14/fadeinslideshow.htm). Currently when a menu drops it goes behind the slidehow and can't be seen. Works in IE but not on any other browser. Please help. Thank you.
bernie1227
10-04-2012, 07:10 AM
use the css3 z-index property, which basically defines which layer the item is on, add this to your css for it:
z-index: 100;
tmurphy218
10-04-2012, 07:48 PM
Thanks Bernie, however the z index was already set to 100 in the css. here is my site, maybe that would help? http://thecamelotbanquethall.com. Issue is in FireFox
jscheuer1
10-04-2012, 08:28 PM
make it 1010
tmurphy218
10-04-2012, 09:20 PM
1010 did not work either. any other suggestions would be great. here is the CSS as provided when I included the menu in the page:
/* ######### Default class for drop down menus ######### */
.anylinkcss{
position: absolute;
left: 0;
top: 0;
visibility: hidden;
border: 1px solid black;
border-bottom-width: 0;
font: normal 12px Verdana;
line-height: 18px;
z-index: 100; /* zIndex should be greater than that of shadow's below */
background: #cfc7b0;
width: 400px; /* default width for menu */
}
.anylinkcss ul{
margin: 0;
padding: 0;
list-style-type: none;
}
.anylinkcss ul li a{
width: 100%;
display: block;
text-indent: 3px;
border-bottom: 1px solid black;
padding: 1px 0;
text-decoration: none;
font-weight: bold;
text-indent: 5px;
}
.anylinkcss a:hover{ /*hover background color*/
background: black;
color: white;
}
/* ######### Alternate multi-column class for drop down menus ######### */
.anylinkcsscols{
position: absolute;
left: 0;
top: 0;
visibility: hidden;
border: 1px solid black;
padding: 10px;
font: normal 12px Verdana;
z-index: 100; /*zIndex should be greater than that of shadow's below*/
background: #cfc7b0;
}
.anylinkcsscols .column{
width: 185px;
float: left;
}
.anylinkcsscols .column ul{
margin: 0;
padding: 0;
list-style-type: none;
}
.anylinkcsscols li{
padding-bottom: 3px;
}
/* ######### class for shadow DIV ######### */
.anylinkshadow{ /*CSS for shadow. Keep this as is */
position: absolute;
left: 0;
top: 0;
z-index: 99; /*zIndex for shadow*/
background: black;
visibility: hidden;
}
jscheuer1
10-04-2012, 09:41 PM
.anylinkcsscols{
position: absolute;
left: 0;
top: 0;
visibility: hidden;
border: 1px solid black;
padding: 10px;
font: normal 12px Verdana;
z-index: 1010; /*zIndex should be greater than that of shadow's below*/
background: #cfc7b0;
}
The browser cache may need to be cleared and/or the page refreshed to see changes.
bernie1227
10-04-2012, 10:35 PM
Please encase your code between:
[code]
tags
I'd suggest continuing to increase the z-index until you get the result you want.
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.