2

I looked into the bootstrap.css, and didn't quite understand. The only codes about .row looks like this. Why and when do we need .row in bootstrap?

.row {
 margin-right: -15px;
 margin-left: -15px;
}
.row:before,
.row:after{display: table;
 content: " ";
}
.row:after{
 clear: both;
}
jgillich
  • 71,459
  • 6
  • 57
  • 85
user3352464
  • 315
  • 1
  • 3
  • 14
  • The article in the selected answer is great. Here's a concise version of the explanation: http://stackoverflow.com/questions/23899715/bootstrap-balancing-bullet-columns/23912463#23912463 – jme11 Jul 01 '14 at 10:04

1 Answers1

3

The row is a wrapper to contain the columns. Column gutters are offset for the first and last column with the negative row margin. If you didn't have them, you'd see a horizontal scrollbar on your content. Solid Article on the B3 Grid System.

For proper alignment they should be inside a container.

Aibrean
  • 6,297
  • 1
  • 22
  • 38