The .row class .row not required inside the .container , but it is a good idea to include it anyway when you start by wanting a few lines later.
All that .row really does is make sure that all its divs inside are displayed on a separate line, separated from the previous and next .rows .
For .container inside .navbar divs, this is a separate thing that is required for the navbar line to remain with the rest of the page. If you look further in the rendered HTML, you will see that there is another .container that is not inside any .navbar , and that is the one that contains all the main content.
Full example
<div class="container"> <div class="row"> <div class="span4">...</div> <div class="span4">...</div> </div> <div class="row"> <div class="span4"></div> </div> <div class="span4"></div> <div class="span4"></div> </div>
In short
.row defines a string of divs, as the name suggests. Each of them points to a new line of divs, regardless of whether this line was filled or not.
Jon Oct 21 '12 at 1:23 2012-10-21 01:23
source share