Jump to content
Killersites Community
Sign in to follow this  
perryc

Background Image Problem

Recommended Posts

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?

 

 

 

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

ok, for some reason i thought the rule was different for that. Good to know from this point on. Thanks.

Share this post


Link to post
Share on other sites

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

Sign in to follow this  

×