Jump to content

adding a background image

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 post
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 post
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 post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...