Bootstrap 3 .col-xs-offset-* doesn't work?

前端 未结 16 1428
太阳男子
太阳男子 2021-01-31 23:58

I am using bootstrap 3 grid system loved it so far and everything was working well, I am trying to use col-xs-offset-1 and doesn\'t work although .col-sm-offset-1 works. What

相关标签:
16条回答
  • 2021-02-01 01:00

    instead of using col-md-offset-4 use instead offset-md-4, you no longer have to use col when you're offsetting. In your case use offset-xs-1 and this will work. make sure you've called the bootstrap.css folder into your html as follows .

    0 讨论(0)
  • 2021-02-01 01:01

    As of Boostrap 4.x, just as col-xs-6 is now just col-6

    offset-xs-6 is now just offset-6.

    Already tried it, definitely works.

    0 讨论(0)
  • 2021-02-01 01:03

    The problem is that you're putting .name class instead of nameclass

    0 讨论(0)
  • 2021-02-01 01:04

    Just in case someone makes the same error I did before stumbling on this page, that is, adding CSS reset rules (like the very popular reset by Eric Meyer used on millions of websites) after including bootstrap.

    Also, perhaps I should point out that such reset won't be necessary with bootstrap given bootsrap actually implements the normalize.css v3.0.2 reset.

    0 讨论(0)
提交回复
热议问题