+ 3
My images links in css are not working ??
I have to put images in background through css ..but it's not happening
14 ответов
+ 7
Show!
Demo:
#tagname {
background: url("https://www.namitisgreat.com/files/scenery.jpg")
}
+ 6
bhavna parmar the url is wrong 😌
It should end with .jpg or .png ig
+ 5
Try this
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body>
<img src=" https://i.postimg.cc/d1bbYRTP/images.jpg"width="350px"height="350px">
</body>
</html>
+ 4
AKSHAY 😌
+ 4
bhavna parmar I cannot see any image link in your code
+ 3
Namit Jain I thought you purchased a domain . LoL😂
+ 3
You added background to class img1 but in html there is not any class with that name, thats why background image dont work
+ 3
Me to
+ 3
Cant
+ 1
https://code.sololearn.com/WuboWC10eKH6/?ref=app ...it's not happening. Tho
+ 1
In css ..it's there with .img1 , .img2
+ 1
Your image should on same folder
+ 1
Try it in computer
0
If your image is in the same folder as your html file then its okay. Otherwise you've to give proper source of the image.👍👍