0

How do I put an image as a background img in html

24th Jun 2022, 8:11 AM
Uttam
3 Answers
0
In css: yourElement{ background:url("your image"); }
24th Jun 2022, 8:55 AM
šŸ‡ Alex Tușinean šŸ’œ
šŸ‡ Alex Tușinean šŸ’œ - avatar
0
background-image: url("image.png"); or background: url("image.png") no-repeat fixed center;
24th Jun 2022, 9:12 AM
Oleh Davydenko
Oleh Davydenko - avatar
- 3
<img src="image.jpg">
24th Jun 2022, 8:44 AM
Yuvaraj
Yuvaraj - avatar