0

I want to migrate my project from TBS 2.3 to 3 and I've got a question:
Why should I use new classes like col-*- instead of span*?
Since I can use both of this files, new bootstrap.css and old bootstrap-responsive.css on my page and old span* do their work well...
any suggestions?

Ifozest
  • 900
  • 2
  • 12
  • 22

1 Answers1

2

Start reading: Writing Twitter's Bootstrap with upgrading to v3 in mind. The new TB3 is written from a mobile first approach and is not backward-compatible.

Using the old bootstrap-responsive.css will overwrite CSS rules from TB3. Doing this i expect you will got conflicts now or in future. Beside the mobile first approach TB3 also switch to the see box-sizing: border-box?: Why did Bootstrap 3 switch to box-sizing: border-box?

To find a solution for your problem read: Updating Bootstrap to version 3 - what do I have to do?

In this blog is suggest the option to use LESS to copy the col-lg-* or col-sm-* properties to span-* i never tried this. With the latest source it should be possible to construct span* classes with the same properties as col--. You will have to add these classes to grid.less and use modified mixins from mixins.less.

Community
  • 1
  • 1
Bass Jobsen
  • 48,736
  • 16
  • 143
  • 224