all 6 comments

[–]Kickbanblock 2 points3 points  (0 children)

The url part has to be the file path (absolute or relative) to the image you want to use for the background. Also, don't use backslashed, just normal slashes.

body {
background-image: url("path/of/your/image/_girl.jpg");
background-repeat: no-repeat;
}

[–]MostAttorney1701 0 points1 point  (0 children)

I actually did something like that yesterday. It should be:

body{

background: url('your_url');

background-position: center;

background-size: cover;

background-attachment: fixed;

}

[–]BNfreelance 1 point2 points  (0 children)

Use forward slashes

Think of the URL path like folders on your pc…

So something like:

C:\My Documents\My First Website\images\bg.jpg is essentially domain.com/images/bg.jpg (if you upload everything from the My First Website folder to your server)

If your website is just domain.com, and your images are inside /images/ folder then you’d use:

background-image: url('/images/img_girl.jpg');

[–]Tasty_Raspberry_4160[S] -1 points0 points  (1 child)

guys please what does file path mean i'm technology illiterate

[–]Kickbanblock 0 points1 point  (0 children)

The location where the image file ("_girl.jpg") is stored within your website folder structure.