+ 3

How we take url for back ground image in css?

Give comments on It

21st Mar 2019, 2:13 AM
Little Coder
Little Coder - avatar
14 Réponses
+ 1
url is indicate the path of the image to know where the image is located.
21st Mar 2019, 7:59 AM
Alexander YS
Alexander YS - avatar
+ 1
Oh no, you must already put this image, after this, you can call with url.
21st Mar 2019, 10:34 AM
Alexander YS
Alexander YS - avatar
+ 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.
22nd Mar 2019, 1:40 AM
Adnan Zawad Toky
Adnan Zawad Toky - avatar
+ 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.
22nd Mar 2019, 9:22 AM
Pete Wright
Pete Wright - avatar
+ 1
background-image:url(http......);
23rd Mar 2019, 7:31 AM
Aditya Raj
Aditya Raj - avatar
0
How we find the URL
21st Mar 2019, 10:24 AM
Little Coder
Little Coder - avatar
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).
21st Mar 2019, 10:29 AM
Alexander YS
Alexander YS - avatar
0
By writing like this URL a back ground image be created or not in css
21st Mar 2019, 10:31 AM
Little Coder
Little Coder - avatar
0
I will see it
21st Mar 2019, 10:38 AM
Little Coder
Little Coder - avatar
0
Right, friend...
21st Mar 2019, 10:38 AM
Alexander YS
Alexander YS - avatar
0
OK thank u
21st Mar 2019, 10:39 AM
Little Coder
Little Coder - avatar