1

When creating a nav bar, u float the list items to left. This collapses the border. I can see this as the border does not cover the whole container but shows up as just a line. Why does this happen and how to solve this?

Comments
  • 0
    Floating elements decouple them from their parent, thus the border is no longer around the list items. Protip: don't use float.
  • 0
    Make sure your clearing the floats: .container-class:after{content:''; display:block; clear:both;}
Add Comment