I am trying to understand Bootstrap 3\'s responsiveness. I understand in css if you have 2 classes on an element, then the 2nd class will override
It's managed by CSS.
The CSS rules are written in a specific order, and it's this order which make Bootstrap "mobile first". You'll apply, in the right order :
col-xs-ncol-sm-ncol-md-ncol-lg-nExample for :
...
.col-xs-1 {}
...
@media (min-width: 768px) {
...
.col-sm-1 {}
...
}
@media (min-width: 992px) {
...
.col-md-6 {}
...
}
@media (min-width: 1200px) {
...
.col-lg-11 {}
...
}
col-xs-1 rules applied. col-sm-1 rules. As the same element have both classes, col-sm-1 will override col-xs-1 (the last rule written always gain the upper hand).col-md-6 rules, which will override col-sm-1.col-md-11 rules, which will override col-md-6.