- index.html
- style.css
HTML
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Flexible menu with overflow, part 2</title>
<link href="course.css" rel="stylesheet">
<link href="style.css" rel="stylesheet">
</head>
<body class="subtle">
<header>
<div class="logo">
<img src="img/keksby.svg" alt="Keksby">
</div>
<nav class="menu">
<div>
<a href="#">Norwegian salmon</a>
</div>
<div>
<a href="#">Wolffish</a>
</div>
<div>
<a href="#">Crucian</a>
</div>
<div>
<a href="#">Perch</a>
</div>
<div>
<a href="#">Mirror carp</a>
</div>
<div>
<a href="#">Shark</a>
</div>
</nav>
</header>
</body>
</html>
CSS
.menu {
display: flex;
flex-wrap: wrap;
}
You’ve gone to a different page
Goalscompleted
0
- Set a growth factor of
1
for all child divs in the.menu
, - and then add another div with the text link
Som
as the last item in the menu. - Then assign a width of
300px
to the.menu
block, - and then assign
200px
to it.
Comments