I’m creating a navigation bar and I’ve nested a nav inside my header. I’ve got a ul inside this and I want to add a background colour to my ul but it looks rather ugly as the ul extends outside the left edge of the nav. I’ve tried a few things such as setting the margin and padding as 0 for both ul and li items in CSS but none of this works.
Could somebody please explain to me why I’m having this problem and how to fix it? Does it have to do with bootstrap default properties?