Bootstrap row class contains margin-left and margin-right which creates problems

前端 未结 8 2023
北恋
北恋 2020-12-02 15:20

I am using Bootstrap \'row\' class to align divs one on top of another, which works fine but

.row {
   margin-left: -15px;
   marg         


        
8条回答
  •  情话喂你
    2020-12-02 16:06

    Old topic, but I was recently affected by this.

    Using a class "row-fluid" instead of "row" worked fine for me but I'm not sure if it's fully supported going forward.

    So after reading Why does the bootstrap .row has a default margin-left of -30px I just used the

    (without any row class) and it behaved exactly like

提交回复
热议问题