Background image not showing up in IE 9 beta, Google Chrome 8.0.552.224

Discussion in 'HTML & Website Design' started by jim60723, Dec 19, 2010.

  1. #1
    Hi everyone!!

    I have seen many people posted for the same problem like me earlier. Tried couple of them but none worked for me...Background image not showing up in IE 9 beta, Google Chrome 8.0.552.224

    Here is the CSS code:

    body{
    padding:0px;
    margin:0px;
    background-color:#162d70;
    background-image:url(../images/background.jpg);
    background-repeat:no-repeat;
    background-position:right bottom;

    Hope someone can help me out..

    P.S:I already validated the CSS..and it's +ve
     
    jim60723, Dec 19, 2010 IP
  2. hirensoni913

    hirensoni913 Peon

    Messages:
    79
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Hey,

    I copied your code and tried in Google Chrome 8.0.552.224 and it works fine. I think it could be path problem nothing else. Otherwise code is perfect. I couldn't check with IE9 coz i dont have it in my laptop. SO I am damn sure its problem with path.
     
    hirensoni913, Dec 19, 2010 IP
  3. CSM

    CSM Active Member

    Messages:
    1,047
    Likes Received:
    25
    Best Answers:
    0
    Trophy Points:
    55
    #3
    width and height missing...

    I would not recommend to put an image as background into the body.
     
    CSM, Dec 19, 2010 IP
  4. jim60723

    jim60723 Member

    Messages:
    53
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    43
    #4
    Thanks for replying mate..

    Tried with
    width:100%;
    height:auto;

    but still no results...
     
    jim60723, Dec 19, 2010 IP
  5. jim60723

    jim60723 Member

    Messages:
    53
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    43
    #5
    Thanks for the quick reply buddy....

    the image (background.jpg) is in the "images" folder. And I haven't created any folder for images in the root directory. I have also tried calling it from root directory... but no results...maybe I am being stupid and missing out something...any idea???
     
    jim60723, Dec 19, 2010 IP
  6. CSM

    CSM Active Member

    Messages:
    1,047
    Likes Received:
    25
    Best Answers:
    0
    Trophy Points:
    55
    #6
    Do you have a css folder? Where is the CSS file located? If it's in root try background-image:url(./images/background.jpg);
     
    CSM, Dec 19, 2010 IP
  7. jim60723

    jim60723 Member

    Messages:
    53
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    43
    #7
    yup...gotta css folder "style"...the css file located in (../style/style.css)

    tried with background-image:url(./images/background.jpg);

    also tried with single and double quote for the path...but nothings working
     
    jim60723, Dec 19, 2010 IP
  8. jim60723

    jim60723 Member

    Messages:
    53
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    43
    #8
    file structure:

    root folder>
    flash
    images>background.jpg
    js
    style>style.css
    (rest .html files are in the root folder itself.....)

    P.S: background.jpg is in RGB mode
     
    Last edited: Dec 20, 2010
    jim60723, Dec 20, 2010 IP
  9. CSM

    CSM Active Member

    Messages:
    1,047
    Likes Received:
    25
    Best Answers:
    0
    Trophy Points:
    55
    #9
    Is that stuff online? Give us the link then.
     
    CSM, Dec 20, 2010 IP
  10. HungryMinds

    HungryMinds Active Member

    Messages:
    216
    Likes Received:
    2
    Best Answers:
    1
    Trophy Points:
    63
    #10
    Just Try:

    Remove Background-Color, If You Are using Background-Image
    Remove This => background-color:#162d70;

    Or If U Want Both!
    Try:
    background: #162d70 url(../images/background.jpg) no-repeat right bottom;

    Just Try It And Response.
    If It'll Work, I'll Be Happy :) Else Sad :(
     
    Last edited: Dec 20, 2010
    HungryMinds, Dec 20, 2010 IP
  11. jim60723

    jim60723 Member

    Messages:
    53
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    43
    #11
    Sameer...tried it....but both IE9 and chrome betrayed...background didn't show up...they made you sad..as well as me...sniff..sniff
     
    jim60723, Dec 20, 2010 IP
  12. jim60723

    jim60723 Member

    Messages:
    53
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    43
    #12
    Here is the link: webaholic.co.in
     
    jim60723, Dec 20, 2010 IP
  13. HungryMinds

    HungryMinds Active Member

    Messages:
    216
    Likes Received:
    2
    Best Answers:
    1
    Trophy Points:
    63
    #13
    Then Try:
    background:#162d70 url(background.jpg) no-repeat 100% 100%;

    First 100% is For X-Axis
    Second 100% is For Y-Axis

    I Hope It'll Give Me And U Smile :)
     
    HungryMinds, Dec 20, 2010 IP
  14. jim60723

    jim60723 Member

    Messages:
    53
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    43
    #14
    I guess it should be background:#162d70 url(../images/background.jpg) no-repeat 100% 100%;
    anyways tried with both... also added a space background: #162d70

    But nothings seems to be +ve today...I we are very close to the solution..missing out something
     
    jim60723, Dec 20, 2010 IP
  15. jim60723

    jim60723 Member

    Messages:
    53
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    43
    #15
    In some cases the background image shows up if I try with

    background-repeat:repeat;
    Or
    background-repeat:repeat-y;
    Or
    background:#162d70 url(../images/background.jpg) repeat 100% 100%;

    But in all these cases the background image position is disturbed..
     
    jim60723, Dec 20, 2010 IP
  16. bigmike3d

    bigmike3d Peon

    Messages:
    1
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #16
    I had the same problem and could not figure it out, finally I ran the Developer tools in IE and found that my settings for IE were set to run all Intranet Sites in Compatibility View, once I removed that check mark, IE refreshed and voila. I know its late, but maybe this will help somebody.
     
    bigmike3d, Feb 23, 2012 IP