So my problem is real real simple. I was getting confused why there seemed to be a margin on the page after I added the ul element into the nav bar in this example. I'm sure there is a simple reason for this, but I'd like to know why this is happening, for future reference. Thanks for helping satisfy the curiosity!
`
html,
body {
width: 100%;
height: 100%;
}
body {
margin: 0;
background: purple;
-webkit-box-shadow: -1px 4px 4px 2px rgba(0, 0, 0, 0.36);
box-shadow: inset -1px 4px 4px 2px rgba(0, 0, 0, 0.36);
}
div.nav__wrapper {
position: relative;
width: 74%;
height: 4em;
margin: auto;
top: 50%;
transform: translateY(-50%);
}
nav {
width: 100%;
height: 100%;
background-color: black;
}
ul {
display: flex;
height: 100%;
width: 100%;
}
<div class="nav__wrapper">
<nav>
<ul></ul>
</nav>
</div>