perryc Posted July 16, 2014 Report Posted July 16, 2014 What im trying to get is: body { background-image: url("images/witewall.png"); background-repeat: repeat; } I want the background image to show and repeat over the whole page of the body element. I havent been able to get it to show so far? Is there something i'm missing?
falkencreative Posted July 16, 2014 Report Posted July 16, 2014 Is that a misspelling in the file name? "wite" vs "white"? The code looks fine, so it's probably a spelling or path issue.
perryc Posted July 16, 2014 Author Report Posted July 16, 2014 Once i added ../images/witewall.png i got the image to show up. I was thinking i didn't need the ../ for the file path since it was located in the images folder? So anytime you go up a level in paths do you have to include the ../ before the files path? Thanks for the help.
falkencreative Posted July 16, 2014 Report Posted July 16, 2014 a path of "images/image.jpg" is relative to the HTML page that you are viewing. So if you're viewing an HTML page and using that path, the web browser expects the images folder to be in the same folder as the HTML file.
perryc Posted July 16, 2014 Author Report Posted July 16, 2014 ok, for some reason i thought the rule was different for that. Good to know from this point on. Thanks.
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