twitter/bootstrap — Issue #718: Negative Margins and Flush Content to the Edges (eg navigation)
Author: simonmosse
Created: 2011-11-29 11:42:17+00:00
State: open

First off I love Bootstrap and the funkyness that it provides. I just wondered what the thinking behind having padding around the 'Fixed width' example template?

In order to have navigation bars running to the edges and other borders connecting up with the edge etc. you've used negative margins (as in the example), as the entire setup relies on this padding. Would it not make sense to add an additional wrap to the examples, mimic what the padding is doing using margins on the inner wrap, therefore removing the need for negative margins (that could cause cross-browser problems later on in the build?). I wondered if this would make for a cleaner build?

I could be missing something and I am only just dipping into Bootstrap, but I feel uneasy using negative margins whenever I want content to run flush with the edge of the 'Fixed width' example code (not to mention the repercussions on the grid-system afterwards).