[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 316
  • Last Modified:

IE7 CSS list item background images show, and don't

The client has requested that images be placed behind the text in two unordered lists in the left sidebar of a WordPress site. The first list is generated by a WP eCommerce cart widget. The second list is a Woo Themes custom menu widget.

In FF Win/Mac, Chrome Win/Mac and IE8 the tab images show up. In IE7, they show up for the second list - but not for the first. The custom CSS loads last (after the IE7 stylesheet), and I've tried several different ways of getting the images to show in the first list, with no success.

Here's the link: http://www.aaajapaneseimports.com/contact-us/  I've linked to the contact page because the home page has a loud auto-loaded engine sound, but the side bar is the same on all of the pages. I've attached the CSS that is working for the other browsers and the bottom IE7 list first, and my last attempt to get IE7 to recognize the top list at the bottom.

---- Everything else ----
#wrapper #content #sidebar-alt li { background-image: url(http://www.aaajapaneseimports.com/aaawpengine/wp-content/uploads/2011/05/leftMenuTab.gif);
background-repeat: no-repeat; margin: 0 0 3px 20px;}

----at the bottom for IE7 -----
#wrapper #content #sidebar-alt #wpsc_categorisation-3 #categorisation_group_1 ul.wpsc_categories.wpsc_top_level_categories li { background-image: url(http://www.aaajapaneseimports.com/aaawpengine/wp-content/uploads/2011/05/leftMenuTab.gif); }

Open in new window

1 Solution
It looks like your image is a solid color. Why not just use background-color:#8F94A8 ?  
Checked in IE 7 and it works. Not sure why the image isn't coming through though.  
I'm not sure why, but if I remove the "background-image:none" from the "A" tag in reset.css, the navigation shows the image.
your class seems blank and you have used background image in the <li>, when you can background-color:#8F94A8 for the same...
TheGrlGeekAuthor Commented:
Thanks, adding the background color at the bottom of the CSS did work.

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now