I don't understand twitter bootstrap span and row

后端 未结 1 1751
不思量自难忘°
不思量自难忘° 2021-01-30 17:22

I was a huge 960 grid system user, and I thought I would try out Twitter Bootstrap, but maybe it is a stupid question and you can laugh and down vote me but the fact is I don\'t

相关标签:
1条回答
  • 2021-01-30 17:35

    The reason:

    • container is 940px
    • row is 960px with a -20px margin
    • span4 300px with a 20px margin

    when screen width is <=940px, the -20px from row and the 20px margin from span4 cancel each other out, that's why the first span4 has no left margin.

    The 'twitter bootstrap' solution:

    Add bootstrap-responsive.css and when the screen goes under 980px and beyond 768px:

    container become 724px, row 744px and span4 228px, keeping a left margin on first span4.

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