comment ajouter une image en css
.element {
background-image: url("imageFile.png");
}
css changer la largeur de l'image
/*Search Term: "CSS change image width"*/
img {
width: /*Add width here*/;
}
/*Example*/
img {
width: 200px;
}
taille de l'image css ajuster
squareImage {
border: 1px solid #ddd; /* thickness and color of border */
border-radius: 4px; /* edge rounding of border */
width: 150px; /* width of image (px or % or auto) */
height: auto; /* height of image (px or % or auto) */
}
taille de l'image css
img {
width: width;
height: height;
}
image d'arrière-plan html adaptée à l'écran
body {
background-position: center;
background-repeat: no-repeat;
background-size: contain;
}