- index.html
- style.css
HTML
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Flexible menu with overflowing content</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>
</nav>
</header>
</body>
</html>
CSS
.menu {
}
You’ve gone to a different page
Goalscompleted
0
- Assign the flexbox layout for the
.menu
, - and then add another div with the text link
Shark
as the last item in the menu. - Then configure the flex items in the menu to overflow onto a new line.
Comments