Safari wont display background image

Hi,

I have a background-image in css set for the body tag, but Safari wont load the image. I even have a background-color set and that wont work either. But in Firefox and IE, it all works just fine. The weird thing is that I have other sections with their own background-image and they work in Safari, just no the body tag. Any ideas?

body {
margin: 0;
padding: 0;
text-align: center;
background-repeat: repeat-x;
background-color: #A19B94;
background-image: url(images/background.jpg);
}

Thanks,
Josh

powerbook g4 12 867mhz, Mac OS X (10.4.11)

Posted on Jun 19, 2008 1:54 PM

Reply
4 replies

Jun 19, 2008 4:16 PM in response to Josh Johnson

Josh, Try this...

<style type="text/css">
body {
margin: 0 !important;
padding: 0 !important;
background-repeat !important;
background-color: #A19B94 !important;
background-image: url(images/background.jpg) !important;
}
div.c1 { text-align: center !important; }
</style>
</head>
<body>

<div class="c1">
Your Centered Text Here...
</div>
Tom

Message was edited by: Tom

Jun 19, 2008 10:01 PM in response to Josh Johnson

I made a mistake on the "background-repeat: repeat".
Here's the fix..

<style type="text/css">
body {
margin: 0 !important;
padding: 0 !important;

background-repeat: repeat !important;
background-color: #A19B94 !important;
background-image: url(images/background.jpg) !important;
}

div.c1 { text-align: center !important; }
</style>
</head>
<body>
<br />
<div class="c1">
Your Centered Text Here...
</div>


</body>

Tom

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Safari wont display background image

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.