Skip to content

Instantly share code, notes, and snippets.

@DWboutin
Created December 15, 2023 18:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DWboutin/f1081125532f1afe978469084c0ba0e7 to your computer and use it in GitHub Desktop.
Save DWboutin/f1081125532f1afe978469084c0ba0e7 to your computer and use it in GitHub Desktop.
html, body {
background-color: #f2cd37;
}
.container {
width: 1000px;
margin: 0 auto;
}
.logo {
height: 80px;
}
.logo img {
height: 100%;
}
.header {
display: flex;
flex-direction: row;
justify-content: space-between;
margin-bottom: 20px;
}
.header nav {
display: flex;
flex-direction: row;
justify-content: flex-end;
}
.header nav ul {
display: flex;
flex-direction: row;
align-items: center;
justify-content: center;
padding: 0;
margin: 0;
list-style-type: none;
}
.header nav a {
padding: 10px;
color: white;
}
.header nav a:hover {
background-color: #c91a09;
}
<html>
<head>
<title>Home</title>
<link rel="stylesheet" href="css/styles.css" />
</head>
<body>
<div class="container">
<div class="header">
<a href="/" class="logo"><img src="images/logo-lego.png" alt="logo lego" /></a>
<nav>
<ul>
<li><a href="/">Mon monde</a></li>
<li><a href="/">Comment jouer</a></li>
<li><a href="/">Recettes</a></li>
</ul>
</nav>
</div>
<h1>Lego Fortnite</h1>
<p>Welcome to Lego Fortnite!</p>
</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment