CLR navigation problem
Can anyone help me a better way to get the logo and the menu some space.
I use now
margin-left: 90px
but that feels not the right choice.
Second question
Can anyone help me figure out why the button is not aligned nice with the rest of the menu ?
Code so far : https://codepen.io/RoelofWobben/pen/vYoNrXO2 Replies
I'm not sure which of the CRL lessons this corresponds to but it looks like you have over complicated things and are not taking full advantage of flex.
Also, you really shouldn't need to use margins for positioning, just for spacing.
The button is not aligned because you have given it the property
display: inline-block;
but in reality it as a result of the styling in general.
I have forked your pen and made some changes to the header and nav CSS. I have not touched the HTML (though I would if it were mine). I have added comments on properties that I have added or removed.
https://codepen.io/cbolson/pen/MWNaPmXThanks
It is the navigation lesson on day 19
the display : inline block was given by the given code
I will study your changes well