rgrisham Posted August 25, 2015 Share Posted August 25, 2015 (edited) 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 August 25, 2015 by rgrisham Link to comment Share on other sites More sharing options...
davej Posted August 25, 2015 Share Posted August 25, 2015 As you have it written above the stylesheet and the image file must be in the same folder. Maybe you should explain what you mean by css vs css3. Link to comment Share on other sites More sharing options...
rgrisham Posted August 26, 2015 Author Share Posted August 26, 2015 (edited) Figured it out.. My problem was the file name.. The file was two words and I had a blank space between them... I add _ between them and the image displayed correctly as the background. Thanks Edited August 26, 2015 by rgrisham Link to comment Share on other sites More sharing options...
punterf16 Posted September 14, 2015 Share Posted September 14, 2015 (edited) This Demo explains CSS3 Background in great detail [link removed by moderator] Edited September 14, 2015 by Ingolme Links to competing tutorial websites are not allowed by the forum guidelines Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now