home
Images CSS
3
/ 3
Pour positionner l'image de fond, utilisez la propriété
background-position
.
html
<div>
"The world is big enough. It was once," said Phileas Fogg, in a low tone. "Cut the name, let us begin the journey."
</div>
css
div {
height: 300px;
background-image: url("mountain.jpg");
background-size: cover;
-
:
;
}
background
position
center
cover
https://
🎯 Try to reproduce this
https://
Your result
Legal
·
Privacy