I am using Bootstrap 'row
' class to align divs
one on top of another, which works fine but
.row {
margin-left: -15px;
margin-right: -15px;
}
What I noticed is that it specifies margin-left and margin-right attributes to be -13px because of which my contents get shifted towards left. so what I have done is added another class as follows :
.row-no-margin {
margin-left: 0px;
margin-right: 0px;
}
This solves the purpose, but I would still like to know if there is any specific reason for 'margin-left: -15px;
'. And what is the best approach to solve my problem.
some text.. (this text is not aligned since do not have the -15px margin)