- index.html
- style.css
HTML
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Adaptive menu, 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="">
</div>
<div class="menu">
<div>
<a href="#">Meat</a>
</div>
<div>
<a href="#">Fish</a>
</div>
<div>
<a href="#">Milk</a>
</div>
<div>
<a href="#">Cheese</a>
</div>
</div>
</header>
</body>
</html>
CSS
.menu {
display: flex;
justify-content: space-around;
}
You’ve gone to a different page
Goalscompleted
0
- In the
.menu
between the twodiv
elements with the textFish
andMilk
add anotherdiv
element with the text linkSour Cream
. - Then assign the menu the width
80%
.
Comments