I’m working on the Product Landing Page project and I can’t get my <nav> element (the navigation text) to sit within my <header>. The logo seems to be fine - any tips? I’ve tried everything I can think of!
This is still a WIP but any other tips welcome! Thanks in advance!
As said, you can make the header a flexbox container so the logo and nav can share the horizontal space and remove the large margin-left you have added to the ul #nav-bar ul as well which is pushing it.
To get everything to line up you will need to use some more flexbox, give elements a width to make the space distribution work, and remove some default margin and padding on the ul.
I’ve edited your post for readability. When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.
You can also use the “preformatted text” tool in the editor (</>) to add backticks around text.