2
I have the following code:
.top-content {
background-color: #fff;
border: 1px solid #e07b39;
height: 69px;
}
.nav-list {
display: flex;
justify-content: flex-end;
list-style: none;
}
<div class="top-content">
<h1>LOGO</h1>
<nav>
<ul class="nav-list">
<li class="nav-items"><a href="#">Mission</a></li>
<li class="nav-items"><a href="#">Featured Content</a></li>
<li class="nav-items"><a href="#">Location</a></li>
</ul>
</nav>
</div>
My items are out of the box div
. I’ve tried to get one padding-bottom
, but they don’t get in the box.
Someone has a better suggestion?
height:auto
? Off as?– MagicHat
@Magichat see how it looks like in https://jsfiddle.net/fretagi/xu85ptjr/51/ and you will see that the menu items are out of the box
div
. I can’t haveheight: auto
because the project requires it to be69px
– user221459