IE Error Not displaying background-images.

MHLampert
avatar
rank newbie

newbie


Posts: 2
Joined: 2008-05-11

Hello!
This is my first post here. I am having problems.
Here is my css code:

.submenu {
height:24px;
display:inline;
background-image:url(images/submenu_01.png), url(images/submenu_03.png), url(images/submenu_02.png);
background-repeat:no-repeat, no-repeat, repeat-x;
background-position:left, right, center;
padding-left:5px;
padding-right:5px;
margin-left:5px;
display:inherit;
float:inherit;
position:static;
}
.submenu:hover {
height:24px;
background-image:url(images/submenu_over_01.png), url(images/submenu_over_03.png), url(images/submenu_over_02.png);
background-repeat:no-repeat, no-repeat, repeat-x;
background-position:0 0, 100% 0, center;
padding-left:5px;
padding-right:5px;
margin-left:5px;
float:inherit;
}
a.submenu:link {
color:#990000;
font-size:14px;
font-family:"Times New Roman", Times, serif;
font-weight:bold;
text-decoration:none;
}
a.submenu:visited {
color:#990000;
font-size:14px;
font-family:"Times New Roman", Times, serif;
font-weight:bold;
text-decoration:none;
}
a.submenu:hover {
color:#999900;
font-size:14px;
font-family:"Times New Roman", Times, serif;
font-weight:bold;
text-decoration:none;
}
a.submenu:active {
color:#990000;
font-size:14px;
font-family:"Times New Roman", Times, serif;
font-weight:bold;
text-decoration:none;
}

And the HTML code:

My Profile ... The idea is that the 3 background images are displayed behind text link. The text link is displayed but not where it should be. It works perfectly in safari, but not in IE. In IE it displays above where it should and without the background.

the website is www.btowngreeks.com/38/blank.html

Thanks!
MH

jeff_way
jeff_way's picture
rank Enthusiast

Enthusiast


Posts: 137
Joined: 2007-05-07
Location: Nashville

This is because setting

This is because setting multiple backgrounds is a CSS 3 specification. Safari, as far as I'm aware, is the only modern browser that implements this. No other browsers do.

-Jeffrey Way | <a href="http://www.detacheddesigns.com/blog" title="Detached Designs Blog">My Blog </a>

MHLampert
MHLampert's picture
rank newbie

newbie


Posts: 2
Joined: 2008-05-11

Thanks. Any ideas of how

Thanks. Any ideas of how else I could do it?
Thanks!
MH

jeff_way
jeff_way's picture
rank Enthusiast

Enthusiast


Posts: 137
Joined: 2007-05-07
Location: Nashville

Not easily. Most people end

Not easily. Most people end up creating extras divs to hold these backgrounds. Unfortunately, there just isn't an easy way to do it right now. When CSS 3 becomes the standard...you'll be able to do it.

-Jeffrey Way | <a href="http://www.detacheddesigns.com/blog" title="Detached Designs Blog">My Blog </a>