I used the outline of the code from we3schools. My problem is that the button is not level with the navbar.
I couldn't get the code to align where it would let me publish so here is the github link (it's an html file with just the navbar and a css file with just the navbar portion in it).
Seems everything is fine, You can also check by adding this css
@media screen and (min-width: 600px){
.topnav {
display: flex;
align-items: center;
}
}