Jump to content

Background CSS3


rgrisham
 Share

Recommended Posts

html { background: url(img_flower.jpg) no-repeat center center fixed; background-size: cover;}

 

I've put the above CSS3 in stylesheet and into the html doc directly on my laptop, which was displaying the img background using CSS, but I could not get a background using CSS3. I am running Windows 10. Is there a setting on the computer or a limit to an image? I was a jpg img.

 

In addition, I used this same code on another computer and it worked perfectly. Different image and doc, but I've checked it thoroughly for errors in script, but haven't noticed any obvious difference.

 

Anyway help would be greatly appreciated.

 

Thanks

Rich

Edited by rgrisham
Link to comment
Share on other sites

  • 3 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...