I’m working on a site,
seen here: http://handsomeavatar.com/test111/
and I can’t get the background of the menu to load in IE (8).
Can anyone help me?
CSS
.shadow {
-webkit-box-shadow: 0 8px 6px -6px rgba(50, 50, 50, 1);
-moz-box-shadow: 0 8px 6px -6px rgba(50, 50, 50, 1);
box-shadow: 0 8px 6px -6px rgba(50, 50, 50, 1);
filter: progid:DXImageTransform.Microsoft.Blur(PixelRadius=3,MakeShadow=true,ShadowOpacity=0.30);
-ms-filter: "progid:DXImageTransform.Microsoft.Blur(PixelRadius=3,MakeShadow=true,ShadowOpacity=0.30)";
zoom: 1;
}
#menu {
margin: 0 auto;
margin-top: -5px;
width: 800px;
background: transparent url(img/cloudy.jpg);
height: 43px;
-webkit-border-radius: 10px;
-moz-border-radius: 10px;
border-radius: 10px;
behavior: url(border-radius.htc);
}
and html
<div id="content" class="clearfix">
<div id="menu" class="shadow">
<ul id="navigation">
It seems to be happening anywhere I used the .shadow element.
The backgrounds aren’t showing up, even if I delete the class.
The other items on the page load, but even after deleting:
filter: progid:DXImageTransform.Microsoft.Blur(PixelRadius=3,MakeShadow=true,ShadowOpacity=0.30);
-ms-filter: "progid:DXImageTransform.Microsoft.Blur(PixelRadius=3,MakeShadow=true,ShadowOpacity=0.30)";
zoom: 1;
The menu image still does not show up (Can’t see the background).
With the “filter:” on, all you see is shadows and nothing on top.
The problem or question needing answered is why is the background not loading.
javascript as follows:
function navigation_open()
{ navigation_canceltimer();
navigation_close();
ddmenuitem = $(this).find('ul').eq(0).css('visibility', 'visible');}
function navigation_close()
{ if(ddmenuitem) ddmenuitem.css('visibility', 'hidden');}
function navigation_timer()
{ closetimer = window.setTimeout(navigation_close, timeout);}
function navigation_canceltimer()
{ if(closetimer)
{ window.clearTimeout(closetimer);
closetimer = null;}}
$(document).ready(function()
{ $('#navigation > li').bind('mouseover', navigation_open);
$('#navigation > li').bind('mouseout', navigation_timer);});'
Don’t use that
It creates an ugly effect and does not let people see the menu. Regarding to the background, there is something adding inline style to the menu element. Maybe a JS file. By the way, the menu is on a white background, so you don’t have to use background:transparent.