Dynamically adding blocks of information to a page I have code that dynamically adds blocks of information to my page. I don't know in advance how many blocks there will be. I want to utilize Twitter Bootstrap (3.x) to layout them in three columns (e.g. I want to use col-xs-4).

Bottom line: is it okay to add col-* elements to a container without wrapping them in row elements?

I currently generate this markup:



.my-box {
  margin: 5px;
  padding: 5px;
  background-color: #fed;
}
&lt;link href="http://netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css" rel="stylesheet"/&gt;
&lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"&gt;&lt;/script&gt;
&lt;script src="http://netdna.bootstrapcdn.com/bootstrap/3.0.0/js/bootstrap.min.js"&gt;&lt;/script&gt;

&lt;div class="container-fluid"&gt;
  &lt;div class="row"&gt;
    &lt;!-- This will be added dynamically, the number of blocks is determined run-time. --&gt;
    &lt;div class='col-xs-4'&gt;&lt;div class='my-box'&gt;One&lt;/div&gt;&lt;/div&gt;
    &lt;div class='col-xs-4'&gt;&lt;div class='my-box'&gt;Two&lt;/div&gt;&lt;/div&gt;
    &lt;div class='col-xs-4'&gt;&lt;div class='my-box'&gt;Three&lt;/div&gt;&lt;/div&gt;
    &lt;div class='col-xs-4'&gt;&lt;div class='my-box'&gt;Four&lt;/div&gt;&lt;/div&gt;
    &lt;div class='col-xs-4'&gt;&lt;div class='my-box'&gt;Etc.&lt;/div&gt;&lt;/div&gt;
  &lt;/div&gt;
&lt;/div&gt;




I'm looking to get feedback on the above bit of code. (I've omitted the bit that generates the divs for brevity as well as the fact that I'm not necessarily looking for feedback on that bit. Ping me in a comment if you do think the way its generation is important.)

Things I've researched:

This seems to work fine, rendering just the way I want it to. However, this seems to go against common-sense semantics of rows and columns. 

So I checked the Grid System documentation for Bootstrap, but it is unclear as to whether it is or isn't required to wrap col-* elements inside a row or not. Nowhere is it stated as an explicit requirement, but on the other hand the examples do wrap column elements in rows without exception.
Yes, it's fine to do. Rows are only used to create groups of horizontal content. In your case, your grid would wrap around (which you may want to consider is what you really want), but this is how responsive grids of photos are generally created.