Bootstrap grid won't work using xs columns

后端 未结 2 695
陌清茗
陌清茗 2020-12-21 17:48

I started a new project on Codepen and I\'m using bootstrap.. It\'s been a while since I worked CSS. The grid sistem is not responding for me, I can\'t find the problem. I e

2条回答
  •  离开以前
    2020-12-21 18:40

    You are using Bootstrap 4. The class names that you are using are for Bootstrap 3. So you have two options:

    • Include Bootstrap 3 in your project and remove bootstrap 4.

    • Change the class names in your code. Check this link for offsets in Bootstrap 4 and this one for grid.

    This is your code for Bootstrap 4. Also take care of col-md-x, col-lg-x based on your sceen sizes.

    FFC Calculator

    Also check your CodePen link where I have fixed it.

提交回复
热议问题