+ 3
How we take url for back ground image in css?
Give comments on It
14 Réponses
+ 1
url is indicate the path of the image to know where the image is located.
+ 1
Oh no, you must already put this image, after this, you can call with url.
+ 1
The correct way is:
background-image: url(path of image relative to the css file);
I was confused about the path of the image. I thought that the path of image is relative to the HTML file when we use external CSS file. But it was wrong. The path is relative to the CSS file.
+ 1
mohmmed jilani babu
Your answer was already stated in the posts above.
Now, what exactly is your problem here?
This "background image" question has been asked here sooo many times.
Can you give me a link to the image you want to use? Then I can tell you how to proceed.
+ 1
background-image:url(http......);
0
How we find the URL
0
example :If your image(cat.jpg)is located in A folder, you can write like this: -> url(A/cat.jpg) or your image is located in same folder, call directly -> url(cat.jpg).
0
By writing like this URL a back ground image be created or not in css
0
I will see it
0
Right, friend...
0
OK thank u