Jump to content

Recommended Posts

I am using the following css

 

 

.content {
    min-height: 850px;
    color: #CCC;
    padding-right: 320px;
    background-image:url(../images/wheelie.png);
    background-repeat: no-repeat;
    background-position: right bottom;
}

however the background image only shows in the desktop version of safari, I have checked firefox and chrome and mobile safari.

 

I can't see why.

Link to comment
https://forums.phpfreaks.com/topic/291446-background-image-only-shows-in-safari/
Share on other sites

check if your HTML is valid

 

@bravo14 - You're probably already aware of this, but you can validate your HTML here:

http://validator.w3.org/

 

The W3C also has a CSS validation tool here:

http://jigsaw.w3.org/css-validator/

 

 

 

As for your question, the code seems to work for me in Internet Explorer, Firefox, and Chrome. Perhaps the background image URL isn't pointing to the right address. Is your CSS in an external file...or is it in your HTML document?

 

If it's in an external file, perhaps the issue is caused by the document-relative path. You could try switching to a root-relative path. More information about the different path types can be found here:

http://brugbart.com/paths

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.