https://jtcoders.gitub.io/bootstrap
A collection of production-ready HTML, CSS, JavaScript components that we can use in our designs.
CSS Frameworks - Usually include a reset, a grid system, styles for typography and forms. Some include support for mobile/print.
Javascript Frameworks - Gives structure to your JavaScript code and keeps it organized.
Responsiveness and cross-browser consistency for free.
Modular and reusable components.
Twitter's Bootstrap is a front-end UI (user interface) framework
Speeds up the development of new websites and web applications.
#1 Project on github with 95,000+ stars and over 42,000 forks
Bootstrap is an open source project on GitHub, meaning anyone can contribute to its progress.
You can download all the necessary Bootstrap files from getbootstrap.com or from the Bootstrap repo on GitHub.
Note: We are using Bootstrap 4. Version 3 is still very popular as well.Options for structuring your pages with Bootstrap, including global styles, required scaffolding, grid system, and more.
Styles for displaying content with some of the most commonly used HTML elements, including normalization, typography, images, tables, and more.
Over a dozen reusable components built to provide buttons, dropdowns, input groups, navigation, alerts, and much more.
Check out some of the components by opening the example.html
file in your browser window.
Bootstrap is based on a 12-column grid, and uses CSS classes to decide the width of each element.
Each element can take up between 1-12 columns worth of space...
.container
(fixed-width) or .container-fluid
(full-width) for proper alignment and padding..row
) to create horizontal groups of columns.
[CONTENT FOR ROW]
Open up columns.html
in your browser window.
Resize your browser to see where the columns break to fit 100% of the width.
Open up columns-fluid.html
in your browser window.
Resize your browser to see where the columns break to fit 100% of the width.
If you want to have two 50% columns on a mobile phone, you would use .col-xs-6
nested in a .row
, and the rows would be consistent on every device...
[COLUMN 1 CONTENT]
[COLUMN 2 CONTENT]
Two 50% columns on a mobile phone
If you want to have four 25% columns on a desktop, and would like them to break to 100% on a tablet, you would use .col-md-3
nested in a .row
.
[COLUMN 1 CONTENT]
[COLUMN 2 CONTENT]
[COLUMN 3 CONTENT]
[COLUMN 4 CONTENT]
Four 25% columns on desktop that break to 100% width on a tablet.
[COLUMN 1 CONTENT]
[COLUMN 2 CONTENT]
Bootstrap's base typography classes normalize headings, paragraph fonts, list styles and more.
Textual utility classes are also included for layout
Images in Bootstrap 4 can be made responsive by adding the .img-fluid
class.
Applies max-width: 100%;
and height: auto;
so it scales to fit the parent element.
.img-rounded
applies rounded edges.img-circle
takes a square image and applies the style border-radius: 50%;
.img-thumbnail
applies a border with rounded edges to the imageA simple wrapper for positioning branding, navigation, and other elements into a concise header.
Require a wrapping .navbar
and a color scheme.
Navbars and their contents are fluid by default.
A lightweight, flexible component that can optionally extend the entire viewport to showcase key content on your site.
Bootstrap makes styling forms easy and fast.
Use .form-group
to organize sections of your forms
Can be used on block elements like fieldset
or div
Use to style...
Use to style radios and checkboxes, of course.
Add a .btn
class along with a style class to your button.
Bootstrap has six styles and variations.
Use .btn-lg
or .btn-sm
for larger or smaller buttons, respectively.
Use .btn-block
for block-level buttons.
Use disabled
attribute to disable your buttons.
Prettier versions of dialog prompts!
Triggers sans JS: Set data-target
to the modal's ID.
Consists of header
, body
, and footer
.
User .alert
to provide contextual feedback messages for user actions.
Bootstrap has four styles: alert-*
.
Flexible, extensible content container
Replaced Bootstrap 3's old panels and thumbnails
A variety is supported! Mix and match.
.card-img-*
, .card-title
, .card-text
,
.card-list*
, .card-link
.
Use .card-group
, .card-deck
, or .card-column
.card-column
creates a Pinterest-board affect.
An icon font and CSS toolkit originally designed for Bootstrap.
Just add one line in your head
to start using it.
Add html code to your html to insert icons automatically.
Want to customize your Bootstrap page even more?
Just create your own CSS file and include it in the head
, below the Bootstrap CSS to add and override styles!
Before you start creating custom CSS for your design, check the Bootstrap documentation to see if they've already created a class that does what you want.
You can also check if other developers have created a Bootstrap plugin you can leverage.
Get Bootstrap: All documentation and download files for Bootstrap
Bootstrap Expo: Check out all the rad site designs that use Bootstrap
Bootstrap on GitHub: Check out the Bootstrap repo. Maybe even contribute to the project!