SitePoint Sponsor

User Tag List

Results 1 to 6 of 6
  1. #1
    SitePoint Member
    Join Date
    Sep 2012
    Posts
    7
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Background image not working in IE

    My background image is working properly in every browser except IE.
    It doesn't show at all.

    body {background:#eeede6 url(images/background.png) no-repeat;}

    Can anyone help me with this?

  2. #2
    The CSS Clinic is open silver trophybronze trophy
    Paul O'B's Avatar
    Join Date
    Jan 2003
    Location
    Hampshire UK
    Posts
    40,340
    Mentioned
    179 Post(s)
    Tagged
    6 Thread(s)
    Quote Originally Posted by Nina77 View Post
    My background image is working properly in every browser except IE.
    It doesn't show at all.

    body {background:#eeede6 url(images/background.png) no-repeat;}

    Can anyone help me with this?
    Hi, Welcome to Sitepoint

    We'd need a little more to go on that that snippet as it appears to be ok so could be something else at fault. Do you have a link to the problem concerned?

    A common bug is where you don't leave a space after the closing url bracket and IE ignores the rule.

    e.g.

    Code:
    body {background:#eeede6 url(images/background.png)no-repeat;}
    However the snippet you posted does have a gap and therefore should be ok.

  3. #3
    SitePoint Member
    Join Date
    Sep 2012
    Posts
    7
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thank you for your response

    i solved it. I just needed to save image as an 8-bit, it was 24-bit.

    Thanks anyway!

  4. #4
    It's all Geek to me silver trophybronze trophy
    ralph.m's Avatar
    Join Date
    Mar 2009
    Location
    Melbourne, AU
    Posts
    24,165
    Mentioned
    453 Post(s)
    Tagged
    8 Thread(s)
    Quote Originally Posted by Nina77 View Post
    I just needed to save image as an 8-bit, it was 24-bit.
    Modern versions of IE should have been OK with this. Was it an IE6 issue?

  5. #5
    The CSS Clinic is open silver trophybronze trophy
    Paul O'B's Avatar
    Join Date
    Jan 2003
    Location
    Hampshire UK
    Posts
    40,340
    Mentioned
    179 Post(s)
    Tagged
    6 Thread(s)
    Quote Originally Posted by Nina77 View Post
    Thank you for your response

    i solved it. I just needed to save image as an 8-bit, it was 24-bit.

    Thanks anyway!
    Unless you are talking about transparent images in IE6 then 24 bit images would be ok. Or perhaps you are not using a doctype and then all versions of IE will revert to behave much like ie5 and not understand transparency in png images (among many other bad things).

  6. #6
    SitePoint Member
    Join Date
    Sep 2012
    Posts
    7
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Aha, thanks, i know what you're talking about, i hate IE


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •