perryc Posted July 16, 2014 Report Share 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? Quote Link to comment Share on other sites More sharing options...
falkencreative Posted July 16, 2014 Report Share 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. Quote Link to comment Share on other sites More sharing options...
perryc Posted July 16, 2014 Author Report Share 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. Quote Link to comment Share on other sites More sharing options...
falkencreative Posted July 16, 2014 Report Share 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. Quote Link to comment Share on other sites More sharing options...
perryc Posted July 16, 2014 Author Report Share Posted July 16, 2014 ok, for some reason i thought the rule was different for that. Good to know from this point on. Thanks. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.