Jump to content

Background image not showing in IE6


Mergomo

Recommended Posts

Background image is not rendered in IE6. It?s rendered in Firefox, Safari, IE7 and IE6.

 

The CSS code that I?m using is

 

#content .faqs {background: url('../img/bg_content_faqs.gif') repeat-x; margin-top: 20px; margin-bottom: 20px; padding-left: 35px; overflow: hidden; }

 

Any ideas on what is not working???

Link to comment
Share on other sites

Thank you Virtual and Shilon,

 

I tried that (with the semi-colons at the end) but it didn't work (and the browsers that were working fine stopped displaying the background image - I think because I took out the overflow element)...I've tidied up the code to:

 

#content .distributors {

background-image: url('../img/bg_content_awards.gif');

background-repeat: repeat-x;

margin-top: 20px;

margin-bottom: 20px;

padding-left: 35px;

overflow: hidden;

}

 

BTW, you can see the html in the site in http://www.katpak.com/cat_toilet_distributors.html if it's of any help.

Link to comment
Share on other sites

Try

#content.distributors { }

without a space between content and .distributors

 

I've just tested a simple page of my own with and without a space in IE7 and Firefox and if it has a space it doesn't show the background in any of them, so I don't know how any of your styles work as lots have a space.

Edited by Wickham
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...