+ 1
Adding images
How do you add an image to your website for it to cover the whole page ??
2 Réponses
+ 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
+ 1
Thank you very much for the assist Moshe Schnitzler