What is the difference between Bootstrap 3 and Bootstrap 4

PARAMETERBOOTSTRAP 3BOOTSTRAP 4
Grid System4 tier grid system (xs, sm, md, lg).5 tier grid system (xs, sm, md, lg, xl).
CSS FileLESSSASS
Button SizeBootstrap 3 supports .btn-xs class.Only .btn-sm and .btn-lg are available in bootstrap 4.
Horizontal FormWe do not need a .row class using a grid in forms..row class is needed when using the grid in form.
Inverse/dark Table.table-inverse class is not supported..table-inverse class is supported.
Primary UnitPrimary unit is px.Primary unit is rem
Table Head StylesTable head styles are not supported.In bootstrap 4, table head styles with the .thead-light and .thead-dark classes.
Condensed TablesIt supports .table-condensed.It supports .table-sm.
Responsive Image.img-responsive class is to be used..img-fluid class is to be used.
Image AlignmentUse the .pull-right and .pull-left class.One can use .pull-right, .pull-left and other such classes like .text-left and .text-center.
StructureIn order to apply dropdown list, we use <ul>, <li>In order to apply .dropdown-item, we use <a>, <button>.
ColorLimited colors are available; it supports inverse navbars but not other classes.There are many colors; .bg-dass or .navbar-light, .navbar-dark classes are supported.
Jumbotron.jumbotron-fluid class is not required for full-width..jumbotron-fluid class is required for a full-width jumbotron.
Show content.in is used to expand content when the page loads..show is used to expand content when the page loads.
GlyphiconsSupported.Not supported.
Breadcrumb class.breadcrumb class is used against the <ul> tag..breadcrumb class is used against the <li> tag.
AffixSupported.Not supported.
FlexboxNot supported.Supported.
Carousel ItemIt uses the .item class.It uses the .carousel-item class.
Dividers.divider class is applied to <li> element..dropdown-divider class is applied to <div> element.
Panels, Wells and ThumbnailsSupported.Not supported. Cards are used instead

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *