This is heading h1
This is heading h2
This is heading h3
This is heading h4
This is heading h5
This is heading h6
Display Styles
This is display-1
This is display-2
This is display-3
This is display-4
Bootstrap 4 Kitchen Sink
This is display-1
This is display-2
This is display-3
This is display-4
.h1 through .h6 classes are also available, for when you want to match the font styling of a heading but cannot use the associated HTML element.
h1. Bootstrap heading class .h1
h2. Bootstrap heading class .h2
h3. Bootstrap heading class .h3
h4. Bootstrap heading class .h4
h5. Bootstrap heading class .h5
h6. Bootstrap heading class .h6
You can use the mark tag to highlighttext.
Use the del tag to show a text as deleted.
This line of text will render as underlined. It uses the u tag.
Use the small tag for fine or small print.
Use the strong tag for bold text.
Use the em tag for italicized text.
This paragraph uses the text-justify class. Ambitioni dedisse scripsisse iudicaretur. Cras mattis iudicium purus sit amet fermentum. Donec sed odio operae, eu vulputate felis rhoncus. Praeterea iter est quasdam res quas ex communi.Cras mattis iudicium purus sit amet fermentum.
Use text-left for Left aligned text on all viewport sizes.
Use text-center for Center aligned text on all viewport sizes.
Use text-right for Right aligned text on all viewport sizes.
Use text-sm-right for right aligned text on viewports sized SM. (small) or wider.
Use text-md-right for right aligned text on viewports sized MD (medium) or wider.
Use text-lg-right for right aligned text on viewports sized LG (large) or wider.
Use text-xl-left for Left aligned text on viewports sized XL (extra-large) or wider.
Transform text in components with text capitalization classes.
Use text-lowercase for Lowercased text.
Use text-uppercase for Uppercased text.
Use text-capitalize to capitalize the first letter in each word.
This paragraph is not inside a container. Lorem ipsum dolor sit amet, consectetur adipisicing elit. Atque molestiae incidunt obcaecati placeat, beatae iure dolores vero earum accusamus ipsum soluta magni ut quasi cumque debitis, ducimus voluptatem architecto est!
This paragraph is inside a container. It resizes based on the responsive breakpoints. Lorem ipsum dolor sit amet, consectetur adipisicing elit. Distinctio omnis minima vitae. Accusamus reprehenderit aspernatur nihil tempora atque voluptas magni, consequatur nostrum odit iste eaque mollitia esse cumque tenetur ad.
This paragraph is inside a container-fluid. Use .container-fluid for a full width container, spanning the entire width of the viewport. Lorem ipsum dolor sit amet, consectetur adipisicing elit. Commodi odit cum assumenda possimus, non, doloribus. Nam odio ut totam repellat, facilis sequi repudiandae ea provident debitis explicabo quibusdam veniam molestias!
-xs Extra small devices (portrait phones, less than 576px) No media query since this is the default in Bootstrap
-sm Small devices (landscape phones, 576px and up) @media (min-width: 576px) { ... }
-md Medium devices (tablets, 768px and up) @media (min-width: 768px) { ... }
-lg Large devices (desktops, 992px and up) @media (min-width: 992px) { ... }
-xl Extra large devices (large desktops, 1200px and up) @media (min-width: 1200px) { ... }
-xs Extra small devices (portrait phones, less than 576px) @media (max-width: 575px) { ... }
-sm Small devices (landscape phones, less than 768px) @media (max-width: 767px) { ... }
-md Medium devices (tablets, less than 992px) @media (max-width: 991px) { ... }
-lg Large devices (desktops, less than 1200px) @media (max-width: 1199px) { ... }
-xl Extra large devices (large desktops) No media query since the extra-large breakpoint has no upper bound on its width
Column 1 of 2: The column class col applies to every device and viewport, from xs to xl and every column will be the same width.
Column 2 of 2: The column class col applies to every device and viewport, from xs to xl and every column will be the same width.
Column 1 of 3: The column class col applies to every device and viewport, from xs to xl and every column will be the same width.
Column 2 of 3: The column class col applies to every device and viewport, from xs to xl and every column will be the same width.
Column 3 of 3: The column class col applies to every device and viewport, from xs to xl and every column will be the same width.
Column 1 of 3: Auto-layout for flexbox grid columns also means you can set the width of one column and the others will automatically resize around it. This column class is just col.
Column 2 of 3: Auto-layout for flexbox grid columns also means you can set the width of one column and the others will automatically resize around it. You may use predefined grid classes (as shown below), grid mixins, or inline widths. Note that the other columns will resize no matter the width of the center column. This column class is col-6
Column 3 of 3: This column class is just col. Note that the other columns will resize no matter the width of the center column.
Column 1 of 3: Auto-layout for flexbox grid columns also means you can set the width of one column and the others will automatically resize around it. This column class is just col.
Column 2 of 3: Auto-layout for flexbox grid columns also means you can set the width of one column and the others will automatically resize around it. You may use predefined grid classes (as shown below), grid mixins, or inline widths. Note that the other columns will resize no matter the width of the center column. This column class is col-6
Column 3 of 3: This column class is just col. Note that the other columns will resize no matter the width of the center column.
Column 1 of 3
This column is using "col col-xl-2" Using the col-{breakpoint}-auto classes, columns can size itself based on the natural width of its content.
Column 2 of 3 is Using "col-12 col-md-auto"
Column3 of 3 is using "col col-xl-2"
This is super handy with single line content like inputs, numbers, etc. This, in conjunction with horizontal alignment classes, is very useful for centering layouts with uneven column sizes as viewport width changes.
Column 1 of 3
This column is using "col" only. Fugiat qui nostrum beatae, quod officiis animi nulla incidunt magni, delectus repellendus tempora saepe consectetur illum ullam facilis voluptates impedit quisquam nesciunt!
Column 2 of 3. This column is using "col-12 col-md-auto"
Column 3 of 3. This column is using "col col-xl-2"
This column uses just "col"
Create equal-width columns that span multiple rows by inserting a .w-100 where you want the columns to break to a new line. Make the breaks responsive by mixing the .w-100 with some responsive display utilities.
This column uses just "col"
Create equal-width columns that span multiple rows by inserting a .w-100 where you want the columns to break to a new line. Make the breaks responsive by mixing the .w-100 with some responsive display utilities.
This column uses "w-100"
Create equal-width columns that span multiple rows by inserting a .w-100 where you want the columns to break to a new line. Make the breaks responsive by mixing the .w-100 with some responsive display utilities.
This column uses just "col"
Create equal-width columns that span multiple rows by inserting a .w-100 where you want the columns to break to a new line. Make the breaks responsive by mixing the .w-100 with some responsive display utilities.
This column uses just "col"
Create equal-width columns that span multiple rows by inserting a .w-100 where you want the columns to break to a new line. Make the breaks responsive by mixing the .w-100 with some responsive display utilities.
With the handful of grid tiers available, you're bound to run into issues where, at certain breakpoints, your columns don't clear quite right as one is taller than the other. To fix that, use a combination of a .clearfix and our responsive utility classes. This column uses "col-6 col-md-3"
With the handful of grid tiers available, you're bound to run into issues where, at certain breakpoints, your columns don't clear quite right as one is taller than the other. To fix that, use a combination of a .clearfix and our responsive utility classes. This column uses "col-6 col-md-3"
Added the extra clearfix for only the required viewport. To do this, we created an empty div with the class of "clearfix d-sm-none-up".
This column uses "col-6 col-md-3"
With the handful of grid tiers available, you're bound to run into issues where, at certain breakpoints, your columns don't clear quite right as one is taller than the other. To fix that, use a combination of a .clearfix and our responsive utility classes. This column uses "col-6 col-md-3"
Level 1: This column uses "col-md-12". To nest your content with the default grid, add a new .row and set of .col-sm-* columns within an existing .col-sm-* column. The background color is "bg-danger"
This is still part of level 1.
Responsive images in Bootstrap are made responsive with img-fluid. The attributes max-width: 100%; and height: auto; are applied to the image so that it scales with the parent element.
This 200x200px image has "img-fluid" class applied. This image will scale with the parent element, col-md-3.
This 400x300px image has "img-fluid" class applied. This image will scale with the parent element, col-md-4.
This 800x400px image has "img-fluid" class applied. This image will scale with the parent element, col-md-2.
200x200px image has "img-fluid" class and the parent element is col-md-2.
200x200px image has "img-fluid" class and the parent element is col-md-4. In addition to the border-radius utilities, you can use img-thumbnail to give an image a rounded 1px border appearance.
This 400x400px image has "img-fluid" class and the parent element is col-md-4.
Align images with the helper float classes or text alignment classes. block-level images can be centered using the .mx-auto margin utility class.
This image has "img-fluid rounded float-left" and it also has the class "mr-2" to add some space to the right of the image.
This image has "rounded float-right". Resize your screen and notice how the image is not responsive and jumps out of the containing element. To make it responsive, you will also need to add the class "img-fluid".
This 300x300px image is centered inside the parent element col-md-6. The classes "img-fluid rounded mx-auto d-block"
This 300x300px image is centered inside the parent element col-md-6 using " text-center" on the containing div. The classes " img-fluid rounded" has been applied.
This 300x300px image is centered inside the parent element "col-md-6 text-center". The classes "img-fluid rounded-circle" have been applied.
This 400x300px image is centered inside the parent element "col-md-6 text-center". The classes "img-fluid rounded-circle" has been applied. Since the image is rectangle, it appears oval when rounded-circle is applied.
This 300x300px image is centered inside the parent element "col-md-6 text-center". The classes "img-fluid rounded-circle mx-auto d-block" have been applied.
This 400x300px image is centered inside the parent element "col-md-6 text-center". The classes "img-fluid rounded-circle mx-auto d-block" has been applied. Since the image is rectangle, it appears oval when rounded-circle is applied.
# | First Name | Last Name | Username |
---|---|---|---|
1 | Mark | Otto | @mdo |
2 | Jacob | Thornton | @fat |
3 | Larry | the Bird |
# | First Name | Last Name | Username |
---|---|---|---|
1 | Mark | Otto | @mdo |
2 | Jacob | Thornton | @fat |
3 | Larry | the Bird |
# | First Name | Last Name | Username |
---|---|---|---|
1 | Mark | Otto | @mdo |
2 | Jacob | Thornton | @fat |
3 | Larry | the Bird |
# | First Name | Last Name | Username |
---|---|---|---|
1 | Mark | Otto | @mdo |
2 | Jacob | Thornton | @fat |
3 | Larry | the Bird |
# | First Name | Last Name | Username |
---|---|---|---|
1 | Mark | Otto | @mdo |
2 | Jacob | Thornton | @fat |
3 | Larry | the Bird |
# | First Name | Last Name | Username |
---|---|---|---|
1 | Mark | Otto | @mdo |
2 | Mark | Otto | @TwBootstrap |
3 | Jacob | Thornton | @fat |
4 | Larry the Bird |
# | First Name | Last Name | Username |
---|---|---|---|
1 | Mark | Otto | @mdo |
2 | Mark | Otto | @TwBootstrap |
3 | Jacob | Thornton | @fat |
4 | Larry the Bird |
# | First Name | Last Name | Username |
---|---|---|---|
1 | Mark | Otto | @mdo |
2 | Jacob | Thornton | @fat |
3 | Larry the Bird |
# | First Name | Last Name | Username |
---|---|---|---|
1 | Mark | Otto | @mdo |
2 | Jacob | Thornton | @fat |
3 | Larry the Bird |
# | First Name | Last Name | Username |
---|---|---|---|
1 | Mark | Otto | @mdo |
2 | Jacob | Thornton | @fat |
3 | Larry the Bird |
Indicate the current page's location within a navigational hierarchy. Separators are automatically added in CSS through ::before and content.
A card is a flexible and extensible content container. It includes options for headers and footers, a wide variety of content, contextual background colors, and powerful display options. Cards replace our old panels, wells, and thumbnails from Bootstrap 3. Similar functionality to those components is available as modifier classes for cards.
Cards assume no specific width to start, so they'll be 100% wide unless otherwise stated. You can change this as needed with custom CSS, grid classes, grid Sass mixins, or utilities.
Using the grid, wrap cards in columns and rows as needed. The following cards are wrapped in rows and columns:
Some quick example text to build on the card title and make up the bulk of the card's content.
Go somewhereSome quick example text to build on the card title and make up the bulk of the card's content.
Some quick example text to build on the card title and make up the bulk of the card's content.
Card link Another linkSome quick example text to build on the card title and make up the bulk of the card's content.
With supporting text below as a natural lead-in to additional content.
Go somewhereThis card is using the sizing utility w-75 which means its 75%. Resize your screen to see it in action.
ButtonIf your images get distorted, wrap your cards in grids.
This card is wrapped within a row and column. This content is a little bit longer.
This is small text-muted.
This card is wrapped within a row and column. This content is a little bit longer.
This is small text-muted.
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.
In addition to styling the content within cards, Bootstrap includes a few options for laying out series of cards. For the time being, these layout options are not yet responsive. Use card groups to render cards as a single, attached element with equal width and height columns. Card groups use display: flex; to achieve their uniform sizing.
This is a wider card with supporting text below as a natural lead-in to additional content. This content is a little bit longer.
This card has supporting text below as a natural lead-in to additional content.
This is a wider card with supporting text below as a natural lead-in to additional content. This card has even longer content than the first to show that equal height action.
Card decks are a set of equal width and height cards that aren't attached to one another.
This is a longer card with supporting text below as a natural lead-in to additional content. This content is a little bit longer.
This is a footer
This card has supporting text below as a natural lead-in to additional content.
This is a footer
This is a wider card with supporting text below as a natural lead-in to additional content. This card has even longer content than the first to show that equal height action.
This is a footer
Media objects can be infinitely nested, though we suggest you stop at some point. Place nested .media within the .media-body of a parent media object.
Vertically centered Add .modal-dialog-centered to .modal-dialog to vertically center the modal.
Tooltip and Popover Within a Modal
Modal with Grid Inside
attr
How to use
HTML