What you notice first in Bootstrap 4 is that .panel
and .well
have been replaced by the .card
. This makes a lot of sense as "cards" are one of the more well known trends in responsive design. The Bootstrap 4 Cards can be singular, grouped together (as shown) or equal height. There are many different layout and content options.
Cards are a good way to display content composed of different types of objects. They’re well-suited for presenting similar objects whose size or supported actions vary, like headings and photos with captions.
Use card groups to render equal height cards without gutters between the cards. Use .card-deck
for cards that aren’t attached to each another.
A frequent problem occurs when you have multiple items in a row with content of varying height. Thanks to flexbox (and display:table) we now have equal height cards!
Flexbox provides simpler, more flexible layout options like vertical centering.
Simply set the $enable-flex
variable to enable flexbox in Bootstrap 4.
Introduced in CSS3, flexbox won't work in older browsers like IE9.
To accomodate a variety of devices and screen widths
Text is larger in Bootstrap 4. The default font size is now 16px. There are also new "Display headings" that really stand out. The new `em` based sizing is cool too.
The new Bootstrap 4 .navbar
code is lighter. You can make it responsive using the Collapse component and .navbar-toggleable-*
classes that enable you to control the breakpoint.
Some components have been removed from Bootstrap 4. The Glyphicons icon fonts are no longer included, but it's easy to utilize another font like FontAwesome, Octicons or Ionicons. The Affix jQuery plugin has also been dropped. The new recommendation is to use HTML5 position: sticky or a sticky polyfill instead.
text-capitalize
Capitalize each wordtext-uppercase
Uppercase texttext-lowercase
There is lowercase tootext-center
= text-xs-center
text-right
= text-xs-right
pull-right
= pull-xs-right
img-responsive
= img-fluid
list-inline > li
= list-inline-item
nav-item
to nav navbar > linav-link
to nav navbar > li > aactive
class is added to nav-item
for scrollspycarousel-inner > item
= carousel-item
table-condensed
= table-sm
center-block
= m-x-auto
Several simple, but useful utility classes have been added like text, margin and padding helpers. There are also contextual colors and responsive utility classes to hide content on specific breakpoints. There's even a new fluid Jumbotron!
We love feedback. Fill out the form below and we'll get back to you as soon as possible.