Balise Body
Leçon 11 sur 31 du cours Carte 3D | Projet Front-end de Coddy.
Défi
FacileCiblez la balise body :
- Définissez la hauteur (height) à 100 vh.
- Définissez l'affichage (display) sur Flex.
- Définissez align-items et justify-content sur center.
- Définissez la couleur d'arrière-plan (background color) de votre choix.
Remarque : Vous pouvez utiliser cette fonction linear-gradient pour créer un arrière-plan de couleur dégradée :
background: linear-gradient(#00c3ff, black)Essayez vous-même
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<!-- Write HTML code here -->
<script src="script.js"></script>
</body>
</html>