Reputation: 91
When I inspect this example from bootstrap, I find that the margin-bottom in navbar does not separate the navbar and the container.
Upvotes: 2
Views: 1592
Reputation: 419
That's because the navbar is fixed positioned and when you specify some element to be positioned fixed or absolute you are removing that item from document flow hence no effect on subsequent container. Try removing position:fixed on inspect from nav and you will see margin bottom in effect.
Upvotes: 3