### Install Bootstrap with Bower Source: https://getbootstrap.com/docs/3.4/getting-started Install and manage Bootstrap's Less, CSS, JavaScript, and fonts using Bower. ```bash bower install bootstrap ``` -------------------------------- ### Install Grunt CLI and dependencies Source: https://getbootstrap.com/docs/3.4/getting-started Install the Grunt CLI globally, then install local dependencies from package.json in the Bootstrap root directory. ```bash npm install -g grunt-cli ``` ```bash npm install ``` -------------------------------- ### Install Bootstrap with Composer Source: https://getbootstrap.com/docs/3.4/getting-started Install and manage Bootstrap's Less, CSS, JavaScript, and fonts using Composer. ```bash composer require twbs/bootstrap ``` -------------------------------- ### Basic Dropdown Example Source: https://getbootstrap.com/docs/3.4/components Wrap the dropdown trigger and menu within .dropdown (or an element with position: relative) and add the menu HTML. This is the basic dropdown example, made interactive with the dropdown JavaScript plugin. ```html ``` -------------------------------- ### Basic panel example Source: https://getbootstrap.com/docs/3.4/components Basic panel structure using the .panel and .panel-body classes. By default, .panel applies basic border and padding to contain content. ```html
Basic panel example
``` -------------------------------- ### Install Bootstrap with npm Source: https://getbootstrap.com/docs/3.4/getting-started Install Bootstrap using npm. The 'bootstrap' module loads all jQuery plugins onto the jQuery object and does not export anything. ```bash npm install bootstrap@3 ``` -------------------------------- ### Basic button group example Source: https://getbootstrap.com/docs/3.4/components Wrap a series of buttons with .btn in .btn-group. Use role="group" and an aria-label for assistive technologies. ```html
``` -------------------------------- ### Static modal example Source: https://getbootstrap.com/docs/3.4/javascript Static modal markup with header, body, and footer actions. Uses Bootstrap classes modal, modal-dialog, modal-content, modal-header, modal-body, and modal-footer. ```html ``` -------------------------------- ### Dropup Example Source: https://getbootstrap.com/docs/3.4/components Change the dropdown to expand upwards by adding .dropup to the parent element instead of .dropdown. ```html
``` -------------------------------- ### Using and reassigning color variables Source: https://getbootstrap.com/docs/3.4/css Shows two ways to use the color variables: directly in a rule or by reassigning them to a more meaningful variable for your project. The example uses @brand-primary and @brand-info. ```less // Use as-is .masthead { background-color: @brand-primary; } // Reassigned variables in Less @alert-message-background: @brand-info; .alert { background-color: @alert-message-background; } ``` -------------------------------- ### Basic form with form-group and form-control Source: https://getbootstrap.com/docs/3.4/css Basic form example using .form-group for spacing and .form-control for inputs. Includes text, password, file, checkbox, and submit button. Note: do not mix form groups directly with input groups; nest the input group inside the form group instead. ```html

Example block-level help text here.

``` -------------------------------- ### Rerun npm install after troubleshooting Source: https://getbootstrap.com/docs/3.4/getting-started Rerun npm install after deleting the /node_modules/ directory to resolve dependency or Grunt command issues. ```bash npm install ``` -------------------------------- ### Links in alerts with .alert-link Source: https://getbootstrap.com/docs/3.4/components Use the .alert-link utility class to provide matching colored links within any alert. This example shows the four contextual classes with alert-link anchors. ```html ``` -------------------------------- ### Example usage of grid mixins with HTML Source: https://getbootstrap.com/docs/3.4/css Shows how to use the default mixins to create a two-column layout with a gap. The Less defines .wrapper, .content-main, and .content-secondary classes; the HTML uses those classes to structure the page. The layout uses .make-lg-column(8) and .make-lg-column(3) with an offset of 1. ```less .wrapper { .make-row(); } .content-main { .make-lg-column(8); } .content-secondary { .make-lg-column(3); .make-lg-column-offset(1); } ``` ```html
...
...
``` -------------------------------- ### Show and hide content with .show and .hidden classes Source: https://getbootstrap.com/docs/3.4/css HTML example showing how to apply the .show and .hidden classes to force an element to be displayed or hidden, including for screen readers. These classes use !important to avoid specificity conflicts and are only available for block level toggling. ```html
...
``` -------------------------------- ### Static tooltip directions (left, top, bottom) Source: https://getbootstrap.com/docs/3.4/javascript Static tooltip examples for left, top, and bottom placements. The fourth direction (right) is not shown in this snippet. Tooltips with zero-length titles are never displayed. ```html ``` -------------------------------- ### Mobile, tablet, and desktop grid with .col-sm-* Source: https://getbootstrap.com/docs/3.4/css Build on the mobile/desktop example by adding tablet (.col-sm-*) classes for more dynamic layouts. The first row uses .col-xs-12 .col-sm-6 .col-md-8 and .col-xs-6 .col-md-4; the second row uses .col-xs-6 .col-sm-4 and includes an optional .clearfix .visible-xs-block to clear extra small columns when content heights differ. ```html
.col-xs-12 .col-sm-6 .col-md-8
.col-xs-6 .col-md-4
.col-xs-6 .col-sm-4
.col-xs-6 .col-sm-4
.col-xs-6 .col-sm-4
``` -------------------------------- ### Default thumbnail with linked image Source: https://getbootstrap.com/docs/3.4/components Default thumbnail example for linked images. Uses grid columns to create a responsive layout. ```html
...
...
``` -------------------------------- ### Collapse with link and button Source: https://getbootstrap.com/docs/3.4/javascript Collapse example with a link using href and a button using data-target. Both require data-toggle="collapse". The collapse element uses .collapse to hide content, .collapsing during transitions, and .collapse.in to show. ```html
...
``` -------------------------------- ### Panel with table and no body Source: https://getbootstrap.com/docs/3.4/components Use this panel when you want the table to start immediately after the heading, without a panel body. The component moves from panel header to table without interruption. ```html
Panel heading
...
``` -------------------------------- ### Dropdown Header Example Source: https://getbootstrap.com/docs/3.4/components Add a header to label sections of actions in a dropdown menu by using