1BA579AA-EB98-4DCE-8C7B-D4E1E773E616339D0FC3-B446-45E1-8CBD-812A50097E4BD3A50CCD-4257-4AD7-A291-4F318992F88CC0F878A9-8DC0-47D3-B49E-56D911621C81F393BA8F-94AD-4EAC-AD9B-39653105F1C87FB1D783-C9C7-444E-B01A-45F779F5D5FBC2829838-ED94-4720-A2DC-A111650B00BCE6879AB3-7536-456C-A683-609A096C4F8222C5A416-0697-4C2F-8666-95383644FDCB40163839-1DB6-46D5-A697-0935211FFA0A29F8D52A-011B-4676-A266-3E8EA0F7F4BFCCD35D30-F3D7-45F0-BF67-CEF6BC6D606F202C6550-E7A0-4DD2-BF15-FB55559F26AFFDE0836C-62E2-4FE2-9627-224E5D09CF466FE42265-BD67-4EE7-901B-404B3ACEBE56B8D65D47-71D8-48BB-B1DF-4D630627BAC8F2989D34-2626-4FDB-B36E-A79D2BE52C7242F200F8-EADE-42AC-9F09-63615B04670242F200F8-EADE-42AC-9F09-63615B04670271E2FC71-BFE0-4F7B-AD54-C9A77339790E537B8FEC-F7FF-4A02-AABD-9E5A85C88385760E57AF-1EE5-4890-9635-D6E0160A0DB43468193C-7F9E-481C-B8E7-46ABAC9984F1D5B17A24-40CB-42BB-9AC7-5FA808306FA4920F9058-1AE6-401E-A926-C54FD810AD48E49DB335-86E4-4A60-84CA-ED09ECA9288981CF6103-788C-494E-9DED-271ADEAA7E96B77A86A3-BB4C-418E-951B-188FF35EB4AF3FD44831-A12A-46B0-9AD2-1A2BBC9B7A0F3492609E-D55A-4678-955E-4CAC6E9BC8D8BE2BB9CA-3D90-44DE-9B42-77A1CE08E3BF1C2A57BD-3AE7-4063-8C6B-AA7F4EAA129E3A39A46C-91B2-465F-9DC8-FA357B9CC4EB341BE4EB-0F1B-49DB-816A-9A36B1DF986907D556D6-480D-47A6-8FC2-AAD19BC2D1E220E2B905-7E6D-4CE4-B488-71FE5ECE596971A66494-5D2B-4C6A-A91B-CAFE15DBCDC3E6A84B4F-D5E2-42A3-88F8-23E60C1CE2A58654BE3D-EA82-4E0A-91B7-2F392EB55358BC23778E-0FB3-4B70-A7AD-BE6026D721828F95929F-BF51-4602-9B38-0956AF8001960DA07934-8634-4452-93FA-91490ACDD573339F495A-FB3A-43EE-84A1-AB25648D24D906D762F8-552F-4DC4-B6A2-8B63B1C1527B6432CD5F-BE7E-4FF6-A5F1-15B542C896BCD7D2FE1A-8A6C-480D-8A9F-64D3B8503231AADBDDEF-9E67-4895-8C82-AC5BBBEF2F2AE1B8B11F-4B4B-470A-A625-5A5E6161DA9FE1B8B11F-4B4B-470A-A625-5A5E6161DA9F19B2C7CB-7201-4A06-B3F6-A991AB430960D392F913-E4F9-466C-BBF5-0D7CFAE20E5189B9F08D-4467-440C-8C48-7DA2D3A096C0E4A50452-F236-4833-B713-6872CC6A1F6BF56A6B20-4DDB-4EE4-8AA9-B4593B65CFDF0ED47226-91E4-4BEA-89DB-8B1D043689AAC39DFE03-7BA4-4A27-AE11-5F9B4CB1B821F0EE6383-50B6-4789-89B2-525917BAE319290818A2-44D9-4995-829D-781E34004E37AAA306E4-BC4A-44A6-ACCB-3A961F81A9D0EF6D907C-842F-4839-899E-FBD70ECB97937F294FF7-78F7-47C3-87EA-853FF72042582623E5C1-077F-4FFD-B6AC-EFE384DC8ED9F1FD1E9F-F54F-4708-A4D5-15EDD7A20BBDCDF2F927-BF6F-4527-BA16-FDF9675B7129AFEFCCB4-0F7D-4E59-8E85-3E8F23BCA00616B6E5DC-3231-4F7E-839D-FC19B44070AD4288E0DB-B1BF-4DDC-AA6F-3239B58D656CAFC62FBF-A03F-4423-8C1B-A28CFD7F6CDBE5394C53-A4D3-4427-BA97-D84E0637055644D79279-419D-4CC3-A577-11CD803D52534E6C09B5-63AB-4DC3-AC81-3CA8C78802E739532650-D71B-4342-A66F-D357AA35B2E6927FDEA4-A823-4050-ADAF-CAC67C4DE9B90244C2F6-A106-42F5-B657-7D3C02E8AC3802ACFF18-16DD-4AE4-82FC-1374B6A3DA111E3D5D04-79F1-4C0B-8600-56EFA4C3AEAE08AE6BDE-104E-4F1B-AE43-7673B424F555AB2453B8-8226-4C65-AC75-5425FE2A2CE5232FE519-7B6E-4413-8721-5B9185FB6869D7D957FA-217B-449D-BC3A-2D236E102E2D9247246F-4F96-4522-9F05-90A09DDE4E9A326F5394-3290-4789-A4F3-F70938FE45BC53406097-C21A-4011-94DE-2E73216CF25953406097-C21A-4011-94DE-2E73216CF2598F95929F-BF51-4602-9B38-0956AF800196BE8E1A0D-7357-43C5-933A-60D168FDBBD470D68E02-F789-4EC0-8A37-C2CEB36FB7D5payment-amex payment-aura payment-card payment-cvv payment-diners payment-discover payment-elo payment-mastercard payment-masterpass-2 payment-masterpass payment-passbook payment-paypal-branco payment-paypal payment-visa payment-visacheckout Combined ShapeCreated with Sketch. 6FC71F2B-4B51-469E-A1D3-F7925F986ADF76694A84-E473-4235-8811-E7A10CB0522C73536C20-1FA2-453C-8095-7ECBD021C855EFAE1B02-8A5E-45D9-A4C1-0187C71EB4CEE8DBB542-CB2E-4B87-9E42-10D723530A7509B848F2-0CC1-4B2A-AF8A-8ECBFBA2E15FAA8BA63C-C149-453A-BD2E-7F099516342E7ED54ADD-309F-4E10-8602-FD776A3875EB4419C3EC-EB49-41F4-BC00-E2AFD009263FF4F5CB75-BB9C-4F60-BBDA-C62522AD7E80E2132172-ED58-4C64-9EBC-6E7DB3143E37F1C155B7-3AD7-430C-8B64-525DD915C0FD1787A889-A8C7-47AF-99D7-00D2E3DF552ECreated with sketchtool. A6C274DA-DBC7-4CF2-8888-C19FAD76AD41Created with sketchtool. 7573326F-74A3-46D4-818C-DC535C66AF67loading2 B82D52E6-4DB6-4DFB-90E7-0501860A2269Created with sketchtool. logo-tudus logo-universal logo_statum E872A65E-2F7B-430E-A43B-2E3F2A9F47CC
Skip to main content


Guidance on how to upgrade from Bootstrap v3.x to v4.x with emphasis on major changes, what's new, and what's been removed.

Migrating to v4

Bootstrap 4 is a major rewrite of almost the entire project. The most notable changes are summarized immediately below, followed by more specific class and behavioral changes to relevant components.

Heads up! This will be in flux as work on the v4 alphas progresses. Until then consider it incomplete, and we’d love pull requests to help keep it up to date.


Here are the big ticket items you’ll want to be aware of when moving from v3 to v4.

Browser support

  • Dropped IE8 and iOS 6 support. v4 is now only IE9+ and iOS 7+. For sites needing either of those, use v3.
  • Added official support for Android v5.0 Lollipop’s Browser and WebView. Earlier versions of the Android Browser and WebView remain only unofficially supported.

Global changes

  • Switched from Less to Sass for our source CSS files.
  • Switched from px to rem as our primary CSS unit, though pixels are still used for media queries and grid behavior as viewports are not affected by type size.
  • Global font-size increased from 14px to 16px.
  • Added a new grid tier for ~480px and below.
  • Replaced the separate optional theme with configurable options via SCSS variables (e.g., $enable-gradients: true).

Grid system

  • Added support for flexbox (set $enable-flex: true and recompile) in the grid mixins and predefined classes.
  • As part of flexbox, included support for vertical and horizontal alignment classes.
  • Overhauled grid mixins to merge make-col-span into make-col for a singular mixin.
  • Added a new sm grid tier below 768px for more granular control. We now have xs, sm, md, lg, and xl. This also means every tier has been bumped up one level (so .col-md-6 in v3 is now .col-lg-6 in v4).
  • Changed grid system media query breakpoints and container widths to account for new grid tier and ensure columns are evenly divisible by 12 at their max width.
  • Grid breakpoints and container widths are now handled via Sass maps ($grid-breakpoints and $container-max-widths) instead of a handful of separate variables. These replace the @screen-* variables entirely and allow you to fully customize the grid tiers.
  • Media queries have also changed. Instead of repeating our media query declarations with the same value each time, we now have @include media-breakpoint-up/down/only. Now, instead of writing @media (min-width: @screen-sm-min) { ... }, you can write @include media-breakpoint-up(sm) { ... }.


  • Dropped panels, thumbnails, and wells for a new all-encompassing component, cards.
  • Dropped the Glyphicons icon font. If you need icons, some options are:
  • Dropped the Affix jQuery plugin. We recommend using a position: sticky polyfill instead. See the HTML5 Please entry for details and specific polyfill recommendations.
    • If you were using Affix to apply additional, non-position styles, the polyfills might not support your use case. One option for such uses is the third-party ScrollPos-Styler library.
  • Dropped the pager component as it was essentially slightly customized buttons.
  • Refactored nearly all components to use more un-nested classes instead of children selectors.


  • Non-responsive usage of Bootstrap is no longer supported.
  • Dropped the online Customizer in favor of more extensive setup documentation and customized builds.

By component

This list highlights key changes by component between v3.x.x and v4.0.0.


New to Bootstrap 4 is the Reboot, a new stylesheet that builds on Normalize with our own somewhat opinionated reset styles. Selectors appearing in this file only use elements—there are no classes here. This isolates our reset styles from our component styles for a more modular approach. Some of the most important resets this includes are the box-sizing: border change, moving from rem to em units on many elements, link styles, and many form element resets.


  • Moved all .text- utilities to the _utilities.scss file.
  • Dropped .page-header as, aside from the border, all it’s styles can be applied via utilities.
  • .dl-horizontal has been dropped. Instead, use .row on <dl> and use grid column classes (or mixins) on its <dt> and <dd> children.
  • Custom <blockquote> styling has moved to classes—.blockquote and the .blockquote-reverse modifier.


  • Renamed .img-responsive to .img-fluid.


  • Nearly all instances of the > selector have been removed, meaning nested tables will now automatically inherit styles from their parents. This greatly simplifies our selectors and potential customizations.
  • Responsive tables no longer require a wrapping element. Instead, just put the .table-responsive right on the <table>.
  • Renamed .table-condensed to .table-sm for consistency.
  • Added a new .table-inverse option.
  • Added a new .table-reflow option.
  • Added table header modifiers: .thead-default and .thead-inverse


  • Moved element resets to the _reboot.scss file.
  • Renamed .control-label to .form-control-label.
  • Renamed .input-lg and .input-sm to .form-control-lg and .form-control-sm, respectively.
  • Dropped .form-group-* classes for simplicity’s sake. Use .form-control-* classes instead now.
  • Dropped .help-block and replaced it with .form-text for block-level help text. For inline help text and other flexible options, use utility classes like .text-muted.
  • Horizontal forms overhauled:
    • Dropped the .form-horizontal class requirement.
    • .form-group no longer applies styles from the .row via mixin, so .row is now required for horizontal grid layouts (e.g., <div class="form-group row">).
    • Added new .form-control-label class to vertically center labels with .form-controls.


  • Renamed .btn-default to .btn-secondary.
  • Dropped the .btn-xs class entirely as .btn-sm is proportionally much smaller than v3’s.
  • The stateful button feature of the button.js jQuery plugin has been dropped. This includes the $().button(string) and $().button('reset') methods. We advise using a tiny bit of custom JavaScript instead, which will have the benefit of behaving exactly the way you want it to.
    • Note that the other features of the plugin (button checkboxes, button radios, single-toggle buttons) have been retained in v4.

Button group

  • Dropped the .btn-group-xs class entirely given removal of .btn-xs.
  • Switched from parent selectors to singular classes for all components, modifiers, etc.
  • Simplified dropdown styles to no longer ship with upward or downward facing arrows attached to the dropdown menu.
  • Dropdowns can be built with <div>s or <ul>s now.
  • Rebuilt dropdown styles and markup to provide easy, built-in support for <a> and <button> based dropdown items.
  • Dropdown items now require .dropdown-item.
  • Dropdown toggles no longer require an explicit <span class="caret"></span>; this is now provided automatically via CSS’s ::after on .dropdown-toggle.

Grid system

  • Added a new ~480px grid breakpoint, meaning there are now five total tiers.
  • Renamed the responsive grid modifier classes from .col-{breakpoint}-{modifier}-{size} to .{modifier}-{breakpoint}-{size} for simpler grid classes. For example, instead of .col-md-3.col-md-push-9 it’s col-md-3.push-md-9.
  • Overhauled the grid mixins to merge make-col and make-col-span into a single make-col mixin, thereby ensuring mixins and predefined classes utilize the same float/flex behaviors.
  • Added flexbox utility classes for grid system and components.

List groups

  • Dropped nearly all > selectors for simpler styling via un-nested classes.
  • Instead of HTML-specific selectors like .nav > li > a, we use separate classes for .navs, .nav-items, and .nav-links. This makes your HTML more flexible while bringing along increased extensibility.
  • Dropped the .navbar-form class entirely. It’s no longer necessary.


  • Explicit classes (.page-item, .page-link) are now required on the descendants of .paginations
  • Dropped the .pager component entirely as it was little more than customized outline buttons.
  • An explicit class, .breadcrumb-item, is now required on the descendants of .breadcrumbs

Labels, badges, and tags

  • Renamed .label to .tag to disambiguate from the <label> element.
  • Dropped the .badge component as it was nearly identical to labels/tags. Use the .tag-pill modifier together with the label component instead for that rounded look.
  • Tags are no longer floated automatically in list groups and other components. Utility classes are now required for that.

Panels, thumbnails, and wells

Dropped entirely for the new card component.


  • .panel to .card
  • .panel-default removed and no replacement
  • .panel-heading to .card-header
  • .panel-title to .card-header. Depending on the desired look, you may also want to use heading elements or classes (e.g. <h3>, .h3) or bold elements or classes (e.g. <strong>, <b>, .font-weight-bold). Note that .card-title, while similarly named, produces a different look than .panel-title.
  • .panel-body to .card-block
  • .panel-footer to .card-footer
  • .panel-primary to .card-primary and .card-inverse (or use .bg-primary on .card-header)
  • .panel-success to .card-success and .card-inverse (or use .bg-success on .card-header)
  • .panel-info to .card-info and .card-inverse (or use .bg-info on .card-header)
  • .panel-warning to .card-warning and .card-inverse (or use .bg-warning on .card-header)
  • .panel-danger to .card-danger and .card-inverse (or use .bg-danger on .card-header)
  • Renamed .item to .carousel-item.


  • Added .pull-{xs,sm,md,lg,xl}-{left,right,none} classes for responsive floats and removed .pull-left and .pull-right since they’re redundant to .pull-xs-left and .pull-xs-right.
  • Added responsive variations to our text alignment classes .text-{xs,sm,md,lg,xl}-{left,center,right} and removed the redundant .text-{left,center,right} utilities as they are the same as the xs variation.
  • Dropped .center-block for the new .m-x-auto class.

Vendor prefix mixins

Bootstrap 3’s vendor prefix mixins, which were deprecated in v3.2.0, have been removed in Bootstrap 4. Since we use Autoprefixer, they’re no longer necessary.

Removed the following mixins: animation, animation-delay, animation-direction, animation-duration, animation-fill-mode, animation-iteration-count, animation-name, animation-timing-function, backface-visibility, box-sizing, content-columns, hyphens, opacity, perspective, perspective-origin, rotate, rotateX, rotateY, scale, scaleX, scaleY, skew, transform-origin, transition-delay, transition-duration, transition-property, transition-timing-function, transition-transform, translate, translate3d, user-select


Our documentation received an upgrade across the board as well. Here’s the low down:

  • We’re still using Jekyll, but we have custom plugins in the mix:
    • example.rb is a fork of the default highlight.rb plugin, allowing for easier example-code handling.
    • callout.rb is a similar fork of that, but designed for our special docs callouts.
  • All docs content has been rewritten in Markdown (instead of HTML) for easier editing.
  • Pages have been reorganized for simpler content and a more approachable hierarchy.
  • We moved from regular CSS to SCSS to take full advantage of Bootstrap’s variables, mixins, and more.

What’s new

We’ve added new components and changed some existing ones. Here are the new or updated styles.

Component Description
Cards New, more flexible component to replace v3’s panels, thumbnails, and wells.
New navbar Replaces the previous navbar with a new, simpler component.
New progress bars Replaces the old .progress <div> with a real <progress> element.
New table variants Adds .table-inverse, table head options, replaces .table-condensed with .table-sm, and .table-reflow.
New utility classes  

TODO: audit new classes that didn’t exist in v3

What’s removed

The following components have been removed in v4.0.0.

Component Removed from 3.x.x 4.0.0 Equivalent
Panels   Cards
Thumbnails   Cards
Wells   Cards
Justified navs    

TODO: audit classes in v3 that aren’t present in v4

Responsive utilities

The following variables have been removed in v4.0.0. Use the media-breakpoint-up(), media-breakpoint-down(), or media-breakpoint-only() Sass mixins or the $grid-breakpoints Sass map instead of:

  • @screen-phone, @screen-tablet, @screen-desktop, @screen-lg-desktop.
  • @screen-xs, @screen-sm, @screen-md, @screen-lg.
  • @screen-xs-min, @screen-xs-max, @screen-sm-min, @screen-sm-max, @screen-md-min, @screen-md-max, @screen-lg-min, @screen-lg-max

The responsive utility classes have also been overhauled.

  • The .hidden and .show classes have been removed because they conflicted with jQuery’s $(...).hide() and $(...).show() methods. Instead, try toggling the [hidden] attribute, use inline styles like style="display: none;" and style="display: block;", or toggle the .invisible class.
  • The old classes (.hidden-xs .hidden-sm .hidden-md .hidden-lg .visible-xs-block .visible-xs-inline .visible-xs-inline-block .visible-sm-block .visible-sm-inline .visible-sm-inline-block .visible-md-block .visible-md-inline .visible-md-inline-block .visible-lg-block .visible-lg-inline .visible-lg-inline-block) are gone.
  • They have been replaced by .hidden-xs-up .hidden-xs-down .hidden-sm-up .hidden-sm-down .hidden-md-up .hidden-md-down .hidden-lg-up .hidden-lg-down.
  • The .hidden-*-up classes hide the element when the viewport is at the given breakpoint or larger (e.g. .hidden-md-up hides an element on medium, large, and extra-large devices).
  • The .hidden-*-down classes hide the element when the viewport is at the given breakpoint or smaller (e.g. .hidden-md-down hides an element on extra-small, small, and medium devices).

Rather than using explicit .visible-* classes, you make an element visible by simply not hiding it at that screen size. You can combine one .hidden-*-up class with one .hidden-*-down class to show an element only on a given interval of screen sizes (e.g. .hidden-sm-down.hidden-xl-up shows the element only on medium and large devices).

Note that the changes to the grid breakpoints in v4 means that you’ll need to go one breakpoint larger to achieve the same results (e.g. .hidden-md is more similar to .hidden-lg-down than to .hidden-md-down). The new responsive utility classes don’t attempt to accommodate less common cases where an element’s visibility can’t be expressed as a single contiguous range of viewport sizes; you will instead need to use custom CSS in such cases.

Misc notes to prioritize

  • Removed the min--moz-device-pixel-ratio typo hack for retina media queries
  • Change buttons’ [disabled] to :disabled as IE9+ supports :disabled. However fieldset[disabled] is still necessary because native disabled fieldsets are still buggy in IE11.

TODO: audit list of stuff in v3 that was marked as deprecated

Additional notes

  • Removed support for styled nested tables (for now)