+ 1

Adding images

How do you add an image to your website for it to cover the whole page ??

4th Jan 2022, 6:16 PM
Emmanuel Kpeglo
2 ответов
+ 3
img{ width: 100%; position: absolute; left: 0; top: 0; } Note that if you set both the width and the height, the image may loose it’s apsect ratio. You can also give the image a background perspective by adding the following property: z-index: -1; That causes other elements to appear on top of the image
4th Jan 2022, 6:21 PM
Moshe Schnitzler
Moshe Schnitzler - avatar
+ 1
Thank you very much for the assist Moshe Schnitzler
4th Jan 2022, 6:25 PM
Emmanuel Kpeglo