Forum Moderators: not2easy

Message Too Old, No Replies

MacIE5.2.2 / CSS background image missing

Mac IE5 does not show a css element background image

         

Igau

5:59 pm on Nov 4, 2003 (gmt 0)

10+ Year Member



I can only assume this is a problem with Mac IE5, as I have compliant XHTML1.1 and CSS2 that is working in IE5.5/Win, IE6/Win, Mozilla 1.6/Win and Mozilla Firebird 0.6.1/Win.

Basically I have a 2 column layout. The left column is the content container and has a background-image: url(); that should be displayed in the top left (although this could be altered, as the image takes up the whole div effectively). This works with every other browser I have tried, except IE5 Mac, which fails to show the image at all.

Please note that I really need someone with a Mac to help, as I dont have access to a Mac to test with.

External Style Sheet Code:

body {

background-color: white;
color: black;
font-family: arial, sans-serif;
font-size: 12px;
padding: 0px;
margin: 0px;
text-align: center;

}

#main {

width: 370px;
float: left;
background-image: url('bg.jpg');
background-repeat: no-repeat;
background-position: top left;
height: 443px;

}

#side {

float: left;
margin: 0px;
padding: 0px;
width: 230px;

}

Can anyone suggest a workaround for me?
Thanks in advance.

chambone

6:35 pm on Nov 4, 2003 (gmt 0)

10+ Year Member



Hi,

You could try:
background-image: url(bg.jpg);

or:
background-image: url(../bg.jpg);

Igau

10:22 pm on Nov 4, 2003 (gmt 0)

10+ Year Member



I've just changed my code to that, but as I dont have a Mac, I have no way of testing it! I assume from the rules that I cant post urls on here, so would anyone volunteer to check for me and I'll email you or something?

Igau

11:17 pm on Nov 4, 2003 (gmt 0)

10+ Year Member



Thanks ... and thanks! :)