Monday, 15 September 2014

css - Can I use one row tag to form a multiple row? -


Will this be a legitimate object to do? I have done this before and provides hopeful results, although I do not know whether it is valid or if there is a negative to do so.

  & lt; Div class = "row" & gt; & Lt; Div class = "col-md-6" & gt; .col-md-6 & lt; / Div & gt; & Lt; Div class = "col-md-6" & gt; .col-md-6 & lt; / Div & gt; & Lt; Div class = "col-md-12" & gt; .col-md-12 & lt; / Div & gt; & Lt; / Div & gt;  "post-text" itemprop = "text"> 

Handles column gutter with bootstrap margins, and then a negative margin at .row . Normally you can keep as many columns as you want, but there is a better practice to work on the rule of 12 lines per line.

Technically, there is nothing "invalid" about the way you are doing it, but it is very clean (IHHO) to separate them in rows:

  & lt; Div class = "row" & gt; & Lt; Div class = "col-md-6" & gt; .col-md-6 & lt; / Div & gt; & Lt; Div class = "col-md-6" & gt; .col-md-6 & lt; / Div & gt; & Lt; / Div & gt; & Lt; Div class = "row" & gt; & Lt; Div class = "col-md-12" & gt; .col-md-12 & lt; / Div & gt; & Lt; / Div & gt;  

No comments:

Post a Comment