- index.html
- style.css
HTML
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Adaptive menu, part 3</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="#">Sour Cream</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;
}
.logo {
}
You’ve gone to a different page
Goalscompleted
0
- Cut the
.logo
block and paste it inside the menu to replace thediv
with the textSour Cream
. - Then assign center alignment for the items along the cross axis for the
.menu
. - Assign the flex item sequence number
-1
to the.logo
block, - and then assign it
1
.
Comments