The usage of row from Bootstrap

I think this can be a dumb question, but I don’t understand the usage of the .row class from Twitter Bootstrap. So, what is it used for? From my reading of the documentation “Use rows to create horizontal groups of columns.” that means I can put single content without using row class.?

Hi thehung1724,

The .row class is a wrapper for the grid columns, anytime you have elements that are floated you need to clear them which .row does by using a clearfix thus allowing your page to flow as expected, typically you only ever need to use it for columns but I’ve found it doesn’t hurt to use it if you want to retain the same outer margin that .row gives you.

If you don’t care about the margin then simply writing your HTML as you would is perfectly fine as Bootstrap has no requirement that you use it’s structure so you can be as flexible as you need to be.

1 Like

Thank you for useful info.

Your welcome, let us know if you need any further help.