John John
John John

Reputation: 1

Bootstrap 2 (span) Vs Bootstrap 3 (col-md)

I use to work on an asp.net mvc web application using Bootstrap v2.0, where i use the following to divide the screen into 3 parts 4x4x4 :-

<div class="box span4">
...
</div>
<div class="box span4">
...
</div>
<div class="box span4">
...
</div>

while on bootstrap v3.0 seems i need to do the following :-

 <div class="row">
    <div class="box col-md-4"></div>
  <div class="box col-md-4"></div>
  <div class="box col-md-4"></div>
</div>

so i have these 2 questions regarding the above:-

Upvotes: 3

Views: 692

Answers (1)

M B Parvez
M B Parvez

Reputation: 816

Actually the different is in there break point. span breaks the layout at 767px where col-md- breaks the structure at 991px.

col-md-4 means a div will occupy 3 column on large and medium screen, and will adopt 100% bellow 992px.

Upvotes: 1

Related Questions