Mon Site Web
Exemple de CSS (dans un fichier externe « styles.css ») pour styliser et positionner les éléments :
css
Copy code
/* Style pour l’en-tête (logo) */
header {
text-align: center;
background-color: #333;
color: white;
padding: 10px;
}
header img {
max-width: 100%;
}
/* Style pour la barre de navigation */
nav {
background-color: #444;
padding: 10px;
}
nav ul {
list-style-type: none;
margin: 0;
padding: 0;
}
nav ul li {
display: inline;
margin-right: 20px;
}
nav ul li a {
color: white;
text-decoration: none;
}
/* Style pour les carrés de l’équipe */
#equipe {
display: flex;
justify-content: center;
align-items: center;
}
.membre-equipe {
width: 200px;
height: 200px;
background-color: #ccc;
margin: 10px;
}