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

Posted on 2011-05-06
Last Modified: 2012-06-27
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:  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(;
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(; }

Open in new window

Question by:TheGrlGeek
    LVL 30

    Accepted 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.  
    LVL 16

    Expert Comment

    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.
    LVL 3

    Expert Comment

    your class seems blank and you have used background image in the <li>, when you can background-color:#8F94A8 for the same...

    Author Closing Comment

    Thanks, adding the background color at the bottom of the CSS did work.

    Featured Post

    Top 6 Sources for Identifying Threat Actor TTPs

    Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

    Join & Write a Comment

    SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
    Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
    The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…
    Google currently has a new report that is in beta and coming soon to Webmaster Tool accounts. This Micro Tutorial will highlight new features for Google Webmaster Tools.

    745 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    15 Experts available now in Live!

    Get 1:1 Help Now