1.A navigation bar
IntermediateLay out the header with the logo on the left and the links on the right, vertically centered, with 16px between the links and 12px 16px padding on the header.
<header class="bar">
<strong>Laviyx</strong>
<nav class="links">
<a href="#">Courses</a>
<a href="#">Practice</a>
<a href="#">About</a>
</nav>
</header>Show hint
display: flex with justify-content: space-between and align-items: center on the header, and display: flex; gap on the nav.
Show solution
.bar {
display: flex;
justify-content: space-between;
align-items: center;
padding: 12px 16px;
background: #1d3b4f;
color: white;
}
.links {
display: flex;
gap: 16px;
}
.links a {
color: white;
text-decoration: none;
}