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

前端 未结 8 2020
北恋
北恋 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:08

    Here is your simple and easy answer

    Go to your class where you want to give a negative margin then copy and paste this inside the class.

    Example for negative margin top

    mt-n3
    

    Example for negative margin bottom

    mb-n2
    

提交回复
热议问题