Bootstrap


Bootstrap Tags

 

CLASS

 

EXPLANATION

.affix The affix plugin toggles position: fixed; on and off, emulating the effect found with position: sticky. The sub navigation on the right is a live demo of the affix plugin.
.alert Similar to a well it is a box with a border and padding. The .alert class adds the padding and margin.
.alert-danger Similar to a well it is a box with a border and padding. The .alert class adds the padding and margin. Defaults as red background color.
.alert-dismissible Similar to a well it is a box with a border and padding. This class and a child element with a .close class lets the user close the alert.
.alert-info Similar to a well it is a box with a border and padding. The .alert class adds the padding and margin. Defaults as blue background color.
.alert-link When you add links inside alert this class matches the font color to the parent alert class.
.alert-success Similar to a well it is a box with a border and padding. The .alert class adds the padding and margin. Defaults as green background color.
.alert-warning Similar to a well it is a box with a border and padding. The .alert class adds the padding and margin. Defaults as yellow background color.
.active Tables contextual class to change row color
.arrow popover option – .arrow will become the popover’s arrow.
.dl-horizontal Makes terms and definitions line up with a center gutter
.badge Used to show new or unread messages or items like the iOS red icon showing new messages or email.
.bg-danger Similar to the contextual text color classes, easily set the background of an element to any contextual class. Anchor components will darken on hover, just like the text classes.
.bg-info Similar to the contextual text color classes, easily set the background of an element to any contextual class. Anchor components will darken on hover, just like the text classes.
.bg-primary Similar to the contextual text color classes, easily set the background of an element to any contextual class. Anchor components will darken on hover, just like the text classes.
.bg-success Similar to the contextual text color classes, easily set the background of an element to any contextual class. Anchor components will darken on hover, just like the text classes.
.bg-warning Similar to the contextual text color classes, easily set the background of an element to any contextual class. Anchor components will darken on hover, just like the text classes.
.breadcrumb Indicate the current page’s location within a navigational hierarchy.
.btn This class sets the spacing and size of the button.
.btn-block By default buttons are inline this class makes it block to span the full width of its parent.
.btn-danger Defaults to a red background button
.btn-default Defaults to a white background button with dark border.
.btn-group Smushes multiple buttons together to make a pill shape. Each button is separated by a vertical line.
.btn-group-justified Make a group of buttons stretch at equal sizes to span the entire width of its parent. Also works with button dropdowns within the button group.
.btn-group-vertical Make a set of buttons appear vertically stacked rather than horizontally.
.btn-info Button for information on a topic like terms and conditions. Default is light blue.
.btn-link Keeps the spacing set with the .btn class but removes the outer border.
.btn-lg Fancy larger or smaller buttons? Add .btn-lg, .btn-sm, or .btn-xs for additional sizes.
.btn-primary Use for the primary action in a set.
.btn-sm Fancy larger or smaller buttons? Add .btn-lg, .btn-sm, or .btn-xs for additional sizes.
.btn-success Defaults to a green background button with dark border.
.btn-toolbar Used to create a row of buttons similar pagination row
.btn-warning Defaults to a yellow background button with dark border.
.btn-xs Fancy larger or smaller buttons? Add .btn-lg, .btn-sm, or .btn-xs for additional sizes.
.caption thumbnail caption but could be used elsewhere
.caret Used in dropdown menus to show open and closed states
.carousel parent carousel class making it position relative
.carousel-caption Caption for each slide item
.carousel-control Added to each next and previous anchors
.carousel-indicators parent classed added to an ordered list for the little circles showing what slide you are on
.carousel-inner The div wrapper that contains the carousel slide items
.center-block add width and height to center a block level element
.checkbox form checkbox wrapper – Checkboxes are for selecting one or several options in a list, while radios are for selecting one option from many.
.checkbox-inline Checkboxes are for selecting one or several options in a list, while radios are for selecting one option from many.
.clearfix Used to clear floats by adding .cleafix to the parent element. It adds a pseudo element with clear:both property.
.close Use the generic close icon for dismissing content like modals and alerts.
.col-*-* span 1-12 column. Extra small devices Phones ( < 768px), Small devices Tablets (≥768px), Medium devices Desktops (≥992px), Large devices Desktops (≥1200px). Column device Column numeric values can be 1-12.
.col-*-offset-* Move columns to the right using .col-lg-offset-* classes. These classes increase the left margin of a column by * columns. For example, .col-lg-offset-4 moves .col-lg-4 over four columns. Offset numeric values can be 0-12
.col-*-pull-* Easily change the order of our built-in grid columns with .col-*-push-* and .col-*-pull-* modifier classes. Pull numeric values can be 0-12.
.col-*-push-* Easily change the order of our built-in grid columns with .col-*-push-* and .col-*-pull-* modifier classes. Push numeric values can be 0-12.
.collapse hides content on hide and show component
.collapsing applied during transitions on hide and show component
.container Fixed width container with widths determined by screen sites. Equal margin on the left and right.
.container-fluid Spans the full width of the screen
.control-label In forms this classes is added to form labels to allow the label to be used for form validation
.danger Tables contextual class to change row color
.divider Used to separate links in dropdown menus a
.dropdown This class gives you the ability to add a dropdown to navbar, tabs, and pills so you can display a dropdown of additional navigation.
.dropdown-backdrop On mobile devices, opening a dropdown adds a .dropdown-backdrop as a tap area for closing dropdown menus when tapping outside the menu, a requirement for proper iOS support. This means that switching from an open dropdown menu to a different dropdown menu requires an extra tap on mobile.
.dropdown-header Used to add headers inside the dropdown menu
.dropdown-menu Adds the default styles for the dropdown menu container
.dropdown-toggle This class is added to the button that will have the toggle action applied that will hide and show the dropdown menu
.dropup Add this class to change the orientation of the dropdown menu to pop up instead of down
.embed-responsive The default responsive iframe embed styles
.embed-responsive-16by9 Div wrapper class to make child iframe responsive
.embed-responsive-4by3 Div wrapper class to make child iframe responsive
.fade To have your alerts use animation when closing, make sure they have the .fade and .in classes already applied to them.
.form-control Class added input, textarea, and select to make them 100% and responsive
.form-control-feedback A form validation class
.form-control-static Lets you add plain text to the right of a label. For example, Email label could have help text
.form-group A div wrapper class that goes around a form input and label
.glyphicon Base icon font styling for icon font
.glyphicon-chevron-left Class to add chevron icon to the right
.glyphicon-chevron-right Class to add chevron icon to the right
.h1 – .h6 Apply heading styles to other elements. Make a paragraph look like an h1
.has-feedback You can also add optional feedback icons with the addition of .has-feedback and the right icon.
.help-block A block of help text that breaks onto a new line and may extend beyond one line.
.hidden hides an element everywhere
.hidden-* Use a single or combination of the available classes for toggling content across viewport breakpoints. Can us lg, md, sm. xs
.hidden-print Similar to the regular responsive classes, use these for toggling content for print.
.hide this class is the same as hidden but is deprecated so use .hidden instead
.icon-bar Used in the navbar to make the cheeseburger mobile menu
.icon-next Glyphicon icons not necessary – The .glyphicon .glyphicon-chevron-left and .glyphicon .glyphicon-chevron-right classes are not necessarily needed for the controls. Bootstrap provides .icon-prev and .icon-next as plain unicode alternatives.
.icon-prev Glyphicon icons not necessary – The .glyphicon .glyphicon-chevron-left and .glyphicon .glyphicon-chevron-right classes are not necessarily needed for the controls. Bootstrap provides .icon-prev and .icon-next as plain unicode alternatives.
.img-circle Crops an image to be a circle
.img-rounded Adds rounded corners to an image
.img-thumbnail Adds rounded corners and an inset border to an image
.in To make tabs fade in, add .fade to each .tab-pane. The first tab pane must also have .in to make the initial content visible.
.info Tables contextual class to change row color” target=”_blank” href=”http://getbootstrap.com/css/#tables-contextual-classes
.initialism Add .initialism to an abbreviation for a slightly smaller font-size.
.input-group Wrapper class used to enhance an input and label group by adding a button in front or behind as help text
.input-group-addon The class added to an icon or help text in an form .input-group
.input-group-btn Attaches a button next to a text input. Would work for a search bar or email optin form.
.input-lg Set heights using classes like .input-lg, and set widths using grid column classes like .col-lg-*.
.input-sm Set heights using classes like .input-lg, and set widths using grid column classes like .col-lg-*.
.invisible Make something invisible
.item Class added to each carousel item
.jumbotron A content section that is used to showcase important content. Commonly used on home pages and category pages.
.label Applies default styling to labels “New”
.label-* Change color of the label by adding one of the following: default, warning, info, danger, primary
.lead Increase the font size and line height of a paragraph. Good to use on the first paragraph of an article to improve readability.
.left Used to identify the left carousel control
.list-group Wrapper ul class that contains li with borders
.list-group-item Class added to each li in a list-group
.list-group-item-heading Class added to an anchor or p for a .list-group-item heading
.list-group-item-text Class added to an anchor or p for a .list-group-item text under a heading
.list-group-item-* Change color of list group item by adding one of the following: default, warning, info, danger, primary
.list-inline Overrides a lists default style to be inline and block
.list-unstyled Removes all bullet styling from a ul or ol list
.mark For highlighting a run of text due to its relevance in another context, use the mark tag.
.media Media components are image heading and description text items. Blog comments, portfolio projects, album covers, etc.
.media-body The class added for the media description copy block
.media-heading The class applied to a heading in a media component
.media-list Nested media lists would be good used as comments
.media-object Class added to a media component image
.modal The parent wrapper class of modal content
.modal-backdrop Added by the modal javascript to make the area around the modal clickable to hide the modal
.modal-body The modal body content class : Header – Body – Footer
.modal-content modal-content contains modal-body, modal-header, and modal-footer
.modal-dialog The secondary wrapper class of the entire modal content
.modal-footer The footer of the modal that contains action buttons or help text
.modal-header The header section of the modal that contains the title and close button
.modal-lg Makes a modal wider
.modal-open Javascript adds this class to the body tag to prevent scrolling with the modal is open
.modal-sm Makes the modal not as wide
.modal-title The title of the modal
.nav nav base class added all types of navigation: tabs, pills, justified, disabled links
.nav-justified Makes a tab navigation equal width and span the full width of its parent container
.nav-tabs Class added to enable Bootstrap tabs
.navbar Navigation header class
.navbar-brand Most navbars contain a logo or brand. This class is added to the anchor
.navbar-btn Vertically aligns a button inside a navbar
.navbar-collapse The content inside the navbar that will be hidden with the mobile nav toggle is enabled
.navbar-default The default navbar configuration styles
.navbar-fixed-bottom Fixes the footer to the bottom of the window
.navbar-fixed-top Affixes the navbar to the top of the window
.navbar-form Wrap form elements with this class so that they are vertically center
.navbar-header This class contains the brand image or text and the mobile toggle icons
.navbar-inverse Modify the look of the navbar by inverting the colors
.navbar-left Align nav links, forms, buttons, or text, using the .navbar-left or .navbar-right utility classes. Both classes will add a CSS float in the specified direction.
.navbar-link Use the .navbar-link class to add the proper colors for the default and inverse navbar options.
.navbar-nav The wrapper class of the navigation elements excluding the brand
.navbar-right Align nav links, forms, buttons, or text, using the .navbar-left or .navbar-right utility classes. Both classes will add a CSS float in the specified direction.
.navbar-static-top Create a full-width navbar that scrolls away with the page by adding .navbar-static-top and include a .container or .container-fluid to center and pad navbar content.
.navbar-text Wrap strings of text in an element with .navbar-text, usually on atag for proper leading and color.
.navbar-toggle The class the wraps the mobile toggle icon (cheeseburger icon)
.next Used in the carousel control to identity the next control
.page-header Used as a container for a page title and horizontal border for separation from the body content of a page
.pager class added to a ul which contains li’s with anchors. Good for previous and next buttons
.pagination The wrapper class that contains all of the page navigation
.panel By default, all the .panel does is apply some basic border and padding to contain some content.
.panel-body Class added to the panel body because there is also a panel heading
.panel-* Change the color of the panel by adding the following: default, primary, info, warning, danger
.panel-footer Class added to a panel footer
.panel-group Used to group many panels together. This removes the bottom margin below each panel
.panel-heading Class added to a panel heading area
.panel-title Inside a .panel-heading you can add a .panel-title to adjust the styling of the text
.popover A popover is similar to a tooltip but activated on click
.popover-content A popover is similar to a tooltip but activated on click
.popover-title A popover is similar to a tooltip but activated on click
.pre-scrollable You may optionally add the .pre-scrollable class, which will set a max-height of 350px and provide a y-axis scrollbar.
.prev used in the carousel component for previous link
.progress The parent class wrapper of a progress bar
.progress-bar The class applied to the progress bar graphic that moves
.progress-bar-danger Changes color of progress bar to danger color
.progress-bar-info Changes color of progress bar to info color
.progress-bar-striped Changes progress to a striped version
.progress-bar-success Changes color of progress bar to success color
.progress-bar-warning Changes color of progress bar to warning color
.pull-left Float element to the left
.pull-right Float element to the right
.right Used in the carousel
.row used a parent wrapper of any vertical columns
.show show hidden element
.small Create lighter, secondary text in any heading with a generic tag or the .small class.
.sr-only Hide an element to all devices except screen readers with .sr-only.
.success Tables contextual class to change row color
.tab-pane Class added to the div that will act as a tab content area
.table Adding this class to a HTML table applies the Bootstrap styles
.table-condensed Removes some padding from the table cells
.table-bordered Adds borders to a table and its cells
.table-responsive Makes a table responsive by cropping a wide table and makes it scrollable horizontally
.text-capitalize Capitalize the text or title case
.text-center Aligns the text to the center
.text-danger Changes text color to danger variable color
.text-hide hides the text – useful for replacing text with a background image
.text-info Changes text color to info variable color
.text-justify Full justifies the text
.text-left Aligns the text to the left
.text-lowercase Changes text to lowercase
.text-muted Changes text color to gray
.text-nowrap Prevents the text from wrapping
.text-primary Changes text color to your primary color
.text-right Applies text-align:right
.text-success Changes text color to green or your “success” variable color
.text-uppercase Makes text uppercase
.text-warning Changes a text color to your default “warning” color
.thumbnail display grids of images, videos, text, and more.
.tooltip This class is used by the tooltip javascript as the wrapper of the toolitp
.tooltip-arrow This is the arrow pointer on tooltips that can be positioned
.tooltip-inner The wrapper class of tooltip text. This is generated by the Bootstrap javascript
.top Used on popovers and tooltips to show position of arrow
.visible-*-* Use a single or combination of the available classes for toggling content across viewport breakpoints.
.visible-print-block Use a single or combination of the available classes for toggling content across viewport breakpoints.
.visible-print-inline Use a single or combination of the available classes for toggling content across viewport breakpoints.
.visible-print-inline-block Use a single or combination of the available classes for toggling content across viewport breakpoints.
.warning Tables contextual class to change row color
.well Wells are good for insetting some content. The default styling adds a border box and inner padding.
.well-lg Wells are good for insetting some content. The default styling adds a border box and inner padding. This class doubles the padding.
.well-sm Wells are good for insetting some content. The default styling adds a border box and inner padding. This class decreases the padding.