Bootstrap 4 Examples
Loads of Bootstrap 4 examples. All interactive.
Containers
Grids
- Grid maintained on small devices (
.col-xs-*
) - Grid stacked on small devices (
.col-md-*
)
Typography
- Headings
- Heading classes (where normal text can mimic a heading)
- Sub-headings
- Display Headings
- Lead text
- Marked text
- Abbreviations
- Initialism
- Blockquotes
- Blockquotes with source
- Blockquotes, reversed (right aligned)
- Unordered list, unstyled
- Unordered list, inline
- Description list
- Description list, horizontal
- Computer code
- Keyboard input
- Preformatted text
- Sample text
- Variables
Tables
- Default table (using Bootstrap's
.table
class) - Inverse table
- Striped table
- Bordered table
- Table with the "hover over" effect on its rows
- Table header style — Default
- Table header style — Inverse
- Small/Condensed table
- Contextual classes on tables
- Responsive tables
- Reflow tables
Forms
- Basic form
- Inline form
- Hidden labels
- Horizontal form
- Control size
- Input control size
- Help text
- Validation styles
- Static control
- Disabled checkboxes & radio buttons
- Inline checkboxes & radio buttons
Custom Forms
Buttons
- Contextual styles
- The four button elements
- Outline buttons
- Button size
- Block level button
- Disabled buttons
- Toggle checkboxes
- Toggle radio buttons
Images
- Responsive image
- Image shapes
- Left/right alignment
- Center alignment (using
.center-block
) - Center alignment (using
.text-center
)
Dropdowns
- Basic dropdown menu
- Dropup menu
- Align dropdown items to the right
- Menu headers
- Dividers
- Disabled menu items
Button Groups
- Horizontal button group
- Vertical button group
- Button group size
- Button group toolbar
- Button group with dropdown
- Split dropdown
Input Groups
- Basic input group
- Text on both sides
- Input group size
- Input group with checkboxes & radio buttons
- Button addons
- Input group with dropdown
- Input group with split dropdown
Collapsible Content
Navs
Navbars
- Basic navbar
- Navbar with dropdown
- Active navbar item (current page)
- Navbar with form control
- Navbar items aligned right
- Inverted navbar
- Navbar in primary color
- Navbar with custom color
- Fixed navbar
- Fixed navbar (top)
- Fixed navbar (bottom)
- Navbar with collapsible content
- Responsive navbar
Breadcrumbs
Pagination
- Default pagination
- Active state (for current page)
- Disabled pagination item
- Pagination size
- Pagers (eg "Previous/Next")
- Pager alignment
- Disabled pager
Tags
Jumbotron
Alerts
Modal Dialog Boxes
Progress Bars
Media Objects
- Basic media object example
- Nested media objects
- Horizontal aligment — aligned right
- Vertical alignment — aligned middle
- Vertical alignment — aligned bottom
- Two images stacked vertically
- Two images side by side
- Two images left and right aligned (text in the middle)
- Media list (media objects placed inside a list)
List Groups
- Default list group
- List group with labels
- Linked list group items
- Buttons in a list group
- Disabled items
- Custom content inside a list group
Bootstrap Cards
- Basic card example
- Card with header & footer
- Images flush against the sides of the card
- Images flush with the top and sides
- List group inside a card
- Links inside a card
- Text alignment — center
- Contextual color applied to a card
- Image overlay
- Card width — Cards inside the grid
- Card width — Card group
- Card width — Card decks
- Card width — Card columns
Responsive Embed
Bootstrap Carousels
Tooltips
Popovers
- Basic popover example
- Popover positioning
- Popover with a title
- Close popover by clicking outside the popover
- Popover on hover
Scrollspy
Bootstrap 4 is currently in alpha release, so some things will change as it progresses through the testing phase. I will try to keep these examples as up to date as possible.
Bootstrap 4 alpha was released on 19 August 2015. This release involved a major overhaul of Bootstrap with some big changes to the way it functions.
Release Plan
Bootstrap 4's development and release plan goes something like this:
- Alpha Release
At the time of writing, the first alpha release had just been shipped. The plan is for a few of these alpha releases before progressing to the beta release stage.
Being an alpha release, there may be a few bugs and things might not always work as expected. However, this should change as these get fixed. There may also be some minor changes to components while it's in the alpha release stage, but this should change once it progresses to beta release.
- Beta Release
- Once it's at the beta release stage, the features and functionality available in Bootstrap 4 won't change. You could still encounter some bugs. These should be fixed prior to the release candidate (RC) stage.
- Release Candidate
- Two release candidates are planned in order to test Bootstrap 4 rigorously in an environment closer to production.
- Final Release
- After the release candidates, comes the final release. This will be the official "Bootstrap 4.0.0" release.