css background-image won't work on Safari 3.0.4

Hi,

on one of my webpages I included the following code:

<style type="text/css">
<!--
body {
background-color: #000000;
background-image: url(../medien/DB WEB2HG.jpg);
background-repeat: no-repeat;
background-position: top center;
margin-left: 0px;
margin-right: 0px;
margin-top: 0px;
text-align: center;
}
-->
</style>

On 10.4.11 with Safari all works fine. Same with Safari 3.0.4 on Windows XP. But on 10.5.1 Safari 3.0.4 tells me that is still loading - sometimes 1 of 2 and sometime 2 of 3 items completed (samepage without a change!!!).

I found different things about this on the web. But all those things aren't correct! Again in firefox on 10.5.1 it works - on Windows XP with Safari 3.0.4 it works - on 10.4.11 all browsers work!

I would be really happy to get an solution!

Message was edited by: grauth

various Macs, Mac OS X (10.5.1)

Posted on Jan 15, 2008 12:57 PM

Reply
8 replies

Jan 16, 2008 2:25 AM in response to Tom_X

Thank You Tom,

but honestly I tried before all versions of the url. And to write the complete url dons't work on Safari 3. The combination Leopard/Safari finds the picture but it won't load. Safari tells me first 1 of 2 completed and keeps on loading. If I refesh the page it says 2 of 3 items completed.

The problem shouldn't be a plugin, since on a new setup up iMac is the same problem.

If anyone want's to have a look: http://www.lokale-bilder.de

Jan 26, 2008 1:00 PM in response to grauth

I haven't had problems with CSS specifying background JPEGs on my web sites, as viewed in Safari in Leopard.

You might check if the problem is the JPEG itself. I haven't followed the discussions closely, but there have been a couple of threads on Apple's Discussions recently about certain JPEGs not showing up properly in Leopard. As a test, try substituting a different JPEG - one you've downloaded and can confirm is visible in Safari in Leopard, perhaps?

I'm on my way out the door so haven't done a thorough search, but I think this search in the Leopard forum might pull up some of the threads I was thinking of....

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.

css background-image won't work on Safari 3.0.4

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