twitter-bootstrap Migrating to Bootstrap 4 Bootstrap 3 to Bootstrap 4 CSS Changes


Since Bootstrap 4 is a major rewrite, many of the Bootstrap 3.x class names have changed or been removed. The restructuring of components such as the Navbar, and the introduction of new CSS classes and Flexbox support means that upgrading to 4.x is not a simple conversion process from 3.x.

However, there are some Bootstrap 3.x CSS classes that have a specific Bootstrap 4 replacement.

CSS class name/selector changes from Bootstrap 3.3.7 to 4 (alpha 6)

{t} - represents a tier or breakpoint (ie: sm,md,lg,etc..).
xs tier is the default, and doesn't need to be specified: col-3,col-6,etc..

{u} - represents a col unit size (ie: 1-12)

Bootstrap 3.xBootstrap 4
.col-{t}-{u}.col-{t}-{u} (leave {t} blank for xs)
.col-{t}-offset-{u}.offset-{t}-{u} (leave {t} blank for xs)
.col-{t}-push-{u}.push-{t}-{u} (leave {t} blank for xs)
.col-{t}-pull-{u}.pull-{t}-{u} (leave {t} blank for xs)
.list-inline > li.list-inline-item
.dropdown-menu > li.dropdown-item
.nav navbar > li.nav-item
.nav navbar > li > a.nav-link
.pagination >
.pagination > li >

Also see:
Bootstrap 3.x to 4 Migration Tool
What's New in Bootstrap 4