HTML
HTML
html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Site Web</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<ul>
<li><a href="#Hero">Acceuil</a></li>
<li><a href="#About">a propos de Nous</a></li>
<li><a href="#Services">Services</a></li>
<li><a href="#">Produits</a></li>
<li><a href="#">Contact</a></li>
</ul>
</body>
</html>
Style.css
*{
margin: 0px;
padding: 0px;
font-family: Verdana, Geneva, Tahoma, sans-serif;
}
}
ul li a:hover{
color: black;
background-color: white;
transition: 0.5s;
}
.Services {
height: 560px;
background: url(img/Services-BG.jpg);
background-size: cover;
background-position: fixed;
text-align: center;
padding: 20px;
}
.Services h1 {
font-size: 2rem;
margin-bottom: 20px;
}
.SubServices {
display: flex;
justify-content: space-between;
align-items: flex-start;
gap: 20px;
}
.SubServices div {
background-color: white;
flex: 1;
border: 1px solid #ccc;
border-radius: 10px;
padding: 20px;
text-align: center;
box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}
.SubServices img {
width: 100%;
height: 150px;
margin-bottom: 10px;
object-fit: cover;
}
.SubServices h3 {
font-size: 1.2rem;
margin-bottom: 10px;
color: #333;
}
.SubServices p {
font-size: 1rem;
color: #666;
margin-bottom: 10px;
}
.SubServices a {
text-decoration: none;
color: #007BFF;
font-weight: bold;
transition: color 0.3s;
}
.SubServices a:hover {
color: #0056b3;
}