Bilal
Bilal

Reputation: 2673

background image is not being displayed in IE 8

The content div background is not being displayed in IE8.

Here is the css

#content{
    margin: 0 auto;
    width: 950px;
    height: auto;       
    padding-top: 50px;
    padding-bottom: 15px;       
    font-family:"Trebuchet MS", Arial, Helvetica, sans-serif;
    text-align: justify;
    background-color: #FFF;
    background-image: url('images/content-bg.jpg');
    background-repeat: no-repeat;
    background-position: bottom;
}

All other browsers show the image. When testing in IE9's developer mode using browser mode to IE8 and document mode to IE8 the image is visible but not in IE8 itself.

Upvotes: 0

Views: 1657

Answers (2)

Sonal Khunt
Sonal Khunt

Reputation: 1894

write like

background: url('images/content-bg.jpg') no-repeat 0 bottom #FFF;

Upvotes: 0

Rohan Patil
Rohan Patil

Reputation: 2348

Change background-image url. It will work.

background-image: url("/wordpress/wp-content/themes/allister/images/content-bg.jpg");

Upvotes: 3

Related Questions