Jump to content

adding a background image


Herodotus
 Share

Recommended Posts

This does not help me at all
body {
 background-image: url("paper.gif");
}

How are you going to teach and certify people when I cant even learn to add a background image?
Why are you suing URL and not img?
That code above does not work at all
And apparently on the entire CSS standards you provide me with the vaguest littlest description with zero information and nothing else? Why?

That code does not work, not at all not even in the slightest.

Link to comment
Share on other sites

Your Right! we should scrap the url, even though its been used that way since year dot, because you and only you don't know how to implement it correctly. 

1) do you have a local server?

2) are the image and the document this CSS is used on, in the same directory?

Then it should work!

Link to comment
Share on other sites

  • 2 months later...

Hello, @Herodotus

In your code, everything is right just check the path of the image whether your image file and code is under same folder.

Else pass full url of image file like this : background-image: url("file://C:/Users/Admin/Desktop/Images/img2.jpeg"); 

I hope above information will be useful for you.
Thank you.

Link to comment
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
 Share

×
×
  • Create New...