I’m working on my technical documentation project. I’m obviously still learning a lot. I began creating the navigation bar, but before I get any further I want to get some feedback.
I’ve given the elements temporary background colors so I can visualize what I’m doing. I think I’m doing something wrong.
My nav element is not reaching all of the way to the top and bottom; there is a small white gap appearing.
My ul element is stretching outside of the nav element on the left and not reaching all the way on the right.
I guess I’m asking if those two things are normal or if I’ve done something completely wrong.
I’d also be curious for feedback on the general cleanliness of my CSS so far. I’m trying to put in work to make these projects look good visually but also in terms of the code itself.
The issue with your UL element is caused by your width: 100%. Default browser CSS adds left padding to the UL which is combining with your width to produce a width that exceeds the container.