This document provides a summary of CSS classes in Bootstrap 4 with descriptions and categories. It includes classes for alerts, badges, buttons, button groups, cards, and others. Each class is listed along with a brief description and an example category. There are over 50 classes summarized in a table with 4 columns listing the class, description, example, and category for each.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
55 views13 pages
Bootstrap 4 Classes
This document provides a summary of CSS classes in Bootstrap 4 with descriptions and categories. It includes classes for alerts, badges, buttons, button groups, cards, and others. Each class is listed along with a brief description and an example category. There are over 50 classes summarized in a table with 4 columns listing the class, description, example, and category for each.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 13
All CSS Classes of Bootstrap 4
Generated by Mehedi Hasan
Class Description Example Category .alert Creates an alert message box Try it Alerts .alert-danger Red alert. Indicates a dangerous or potentially negative action Try it Alerts .alert-dark Dark alert. Dark grey alert box Try it Alerts .alert- Indicates a closable alert box. Together with the .close class, Try it Alerts dismissible this class is used to close the alert (adds extra padding) .alert-heading Adds color:inherit to the specified element Try it Alerts .alert-info Teal alert. Indicates a neutral informative change or action Try it Alerts .alert-light Light alert. Light grey alert box Try it Alerts .alert-link Used on links inside alerts to provide matching colored links Try it Alerts .alert-primary Blue alert. Indicates an important action Try it Alerts .alert- Grey alert. Indicates a "less" important action Try it Alerts secondary .alert-success Green alert. Indicates a successful or positive action Try it Alerts .alert-warning Yellow alert. Indicates caution should be taken with this action Try it Alerts .fade Adds a fading effect when closing an alert box Try it Alerts Creates a circular badge (grey circle - often used as a numerical .badge Try it Badges indicator) .badge-danger Red badge. Indicates a dangerous or potentially negative action Try it Badges .badge-dark Dark badge. Dark grey alert box Try it Badges .badge-info Teal badge. Indicates a neutral informative change or action Try it Badges .badge-light Light badge. Light grey alert box Try it Badges .badge-pill Makes a badge more round Try it Badges .badge-primary Blue badge. Indicates an important action Try it Badges .badge- Grey badge. Indicates a "less" important action Try it Badges secondary .badge-success Green badge. Indicates a successful or positive action Try it Badges Yellow badge. Indicates caution should be taken with this .badge-warning Try it Badges action Button .btn-group Groups buttons together on a single line Try it Groups Large button group (makes all buttons in a button group larger Button .btn-group-lg Try it - increased font-size and padding) Groups Small button group (makes all buttons in a button group Button .btn-group-sm Try it smaller) Groups .btn-group- Button Makes a button group appear vertically stacked Try it vertical Groups Combine sets of button groups into button toolbars for more Button .btn-toolbar Try it complex components Groups Adds a dark-blue background color to simulate a .active Try it Buttons "pressed" button .btn Creates a basic button (gray background and rounded corners) Try it Buttons Creates a block level button that spans the entire width of the .btn-block Try it Buttons parent element .btn-dark Dark grey button Try it Buttons .btn-danger Red button. Indicates danger or a negative action Try it Buttons .btn-info Teal button. Represents a neutral informative change or action Try it Buttons .btn-light Light grey button Try it Buttons .btn-link Makes a button look like a link (get button behavior) Try it Buttons .btn-lg Large button Try it Buttons .btn-outline- Dark grey bordered/outlined button Try it Buttons dark .btn-outline- Red bordered/outlined button. Indicates danger or a negative Try it Buttons danger action .btn-outline- Teal bordered/outlined button. Represents a neutral Try it Buttons info informative change or action .btn-outline- Light grey bordered/outlined button Try it Buttons light .btn-outline- Blue bordered/outlined button. Try it Buttons primary .btn-outline- Grey bordered/outlined button. Indicates a "less" important Try it Buttons secondary action .btn-outline- Green bordered/outlined button. Indicates success or a Try it Buttons success positive action .btn-outline- Orange bordered/outlined button. Represents warning or a Try it Buttons warning negative action .btn-primary Blue button. Indicates a something important Try it Buttons .btn-sm Small button Try it Buttons .btn-secondary Grey button. Indicates a "less" important action Try it Buttons .btn-success Green button. Indicates success or a positive action Try it Buttons .btn-warning Orange button. Represents warning or a negative action Try it Buttons Disables a button (adds opacity and a "no-parking-sign" icon on .disabled Try it Buttons hover) .card Creates a card Try it Cards .card-body Container for card content Try it Cards .card-columns Container to create a masonry-like grid of cards Try it Cards Adds a red background color to the card. Represents danger or .card-danger Try it Cards a negative action .card-dark Adds a grey background color to the card Try it Cards Container to create a grid of cards that are of equal height and .card-deck Try it Cards width .card-footer Card footer Try it Cards Container to create a grid of cards that are of equal height and .card-group Try it Cards width, without side margins .card-header Card header Try it Cards .card-header- Styles navigation tabs inside the card header Try it Cards tabs .card-header- Styles navigation pills inside the card header Try it Cards pills .card-img- Place the image at the bottom inside a card Try it Cards bottom .card-img- Turns an image into a card background. Often used to add text Try it Cards overlay on top of the image .card-img-top Place the image at the top inside a card Try it Cards Adds a teal background color to the card. Represents some .card-info Try it Cards information .card-light Adds a light grey background color to the card Try it Cards .card-link Adds a blue color to any link and a hover effect inside the card Try it Cards Adds a blue background color to the card. Represents .card-primary Try it Cards something important .card- Adds a grey background color to the card. Represents Try it Cards secondary something "less" important The .card-subtitle is used after a .card-title, and adds the .card-subtitle following to an element: margin-top: -.375rem; margin- Try it Cards bottom: 0; Adds a green background color to the card. Indicates success or .card-success Try it Cards a positive action Used to remove bottom margins for a p element if it is the last .card-text Try it Cards child (or the only one), inside .card-body .card-title Adds a title to any heading element inside the card Try it Cards Adds a yellow/orange background color to the card. Represents .card-warning Try it Cards a warning or a negative action .active Displays/shows the current carousel item Try it Carousel .carousel Creates a carousel (slideshow) Try it Carousel .carousel- Creates a caption text for each slide in the carousel Try it Carousel caption .carousel- Container for "next" carousel/item link Try it Carousel control-next .carousel- Used together with .carousel-control-next to create a "next" control-next- Try it Carousel icon/button (right-pointed arrow) icon .carousel- Container for "previous" carousel/item link Try it Carousel control-prev .carousel- Used together with .carousel-control-prev to create a control-prev- Try it Carousel "previous" icon/button (left-pointed arrow) icon Adds little dots/indicators at the bottom of each slide (which .carousel- indicates how many slides there is in the carousel, and which Try it Carousel indicators slide the user are currently viewing) .carousel-inner Container for slide items Try it Carousel .carousel-item Specifies the content of each slide Try it Carousel Indicates collapsible content - which can be hidden or shown .collapse Try it Collapse on demand .collapse show Show the collapsible content by default Try it Collapse Adds a red background color to an element. Represents danger .bg-danger Try it Colors or a negative action .bg-dark Adds a dark grey background color to an element Try it Colors Adds a teal background color to an element. Represents some .bg-info Try it Colors information .bg-light Adds a light grey background color to an element Try it Colors Adds a blue background color to an element. Represents .bg-primary Try it Colors something important Adds a grey background color to an element. Indicates a "less" .bg-secondary Try it Colors important action Adds a green background color to an element. Indicates .bg-success Try it Colors success or a positive action Adds a yellow/orange background color to an element. .bg-warning Try it Colors Represents a warning or a negative action .text-danger Red text color. Indicates danger Try it Colors .text-info Light-blue text color. Indicates information Try it Colors .text-light Light grey text color Try it Colors .text-muted Grey text color Try it Colors .text-primary Blue text color. Indicates something important Try it Colors .text-secondary Grey text color. Indicates something "less" important Try it Colors .text-success Green text color. Indicates success Try it Colors .text-warning Yellow/orange text color. Indicates warning Try it Colors .text-white White text color Try it Colors Fixed width container with widths determined by screen sites. .container Try it Containers Equal margin on the left and right. .container-fluid A container that spans the full width of the screen Try it Containers .custom- Custom A wrapper/container for custom checkboxes Try it checkbox Forms .custom- Custom A wrapper/container for custom forms Try it control Forms .custom- Custom Customized form control Try it control-input Forms .custom- Custom Inline (horizontally - side by side) customized form controls Try it control-inline Forms .custom- Customized label, when used together with a custom form Custom Try it control-label control Forms Custom .custom-file Customized file upload Try it Forms Custom .custom-radio A wrapper/container for custom radio buttons Try it Forms Custom .custom-range Customized range control Try it Forms Custom .custom-select Customized select menu Try it Forms .custom-select- Custom Large customized select menu Try it lg Forms .custom-select- Custom Small customized select menu Try it sm Forms Adds a blue background color to the active dropdown item in a .active Try it Dropdowns dropdown Disables a dropdown item (adds a grey text color and a "no- .disabled Try it Dropdowns parking-sign" icon on hover) Creates a toggleable menu that allows the user to choose one .dropdown Try it Dropdowns value from a predefined list .dropdown- Used to separate links in the dropdown menu with a thin Try it Dropdowns divider horizontal border .dropdown- Used to add headers inside the dropdown menu Try it Dropdowns header .dropdown- Creates a dropdown item (added to links or buttons inside Try it Dropdowns item .dropdown-menu) .dropdown- Used to add plain text to a dropdown item, or used on links for Try it Dropdowns item-text default link styling .dropdown- Adds the default styles for the dropdown menu container Try it Dropdowns menu .dropdown- Right-aligns a dropdown menu Try it Dropdowns menu-right .dropdown- Used on the button that should hide and show (toggle) the Try it Dropdowns toggle dropdown menu .dropleft Left-aligns the dropdown Try it Dropdowns .dropright Right-aligns the dropdown Try it Dropdowns .dropup Indicates a dropup menu (upwards instead of downwards) Try it Dropdowns .align-content- Align gathered items "around" Try it Flex around .align-content- Align gathered items "around" on different screens Try it Flex *-around .align-content- Align gathered items in the center Try it Flex center .align-content- Align gathered items in the center on different screens Try it Flex *-center .align-content- Align gathered items at the end Try it Flex end .align-content- Align gathered items at the end on different screens Try it Flex *-end .align-content- Align gathered items from the start Try it Flex start .align-content- Align gathered items from the start on different screens Try it Flex *-start .align-content- Stretch gathered items Try it Flex stretch .align-content- Stretch gathered items on different screens Try it Flex *-stretch .align-items- Align single rows of items from the start Try it Flex start .align-items-*- Align single rows of items from the start on different screens Try it Flex start .align-items- Align single rows of items at the end Try it Flex end .align-items-*- Align single rows of items at the end on different screens Try it Flex end .align-items- Align single rows of items in the center Try it Flex center .align-items-*- Align single rows of items in the center on different screens Try it Flex center .align-items- Align single rows of items at the baseline Try it Flex baseline .align-items-*- Align single rows of items at the baseline on different screens Try it Flex baseline .align-items- Stretch single rows of items Try it Flex stretch .align-items-*- Stretch single rows of items on different screens Try it Flex stretch .align-self-start Align a flex item from the start Try it Flex .align-self-*- Align a flex item from the start on different screens Try it Flex start .align-self-end Align a flex item at the end Try it Flex .align-self-*- Align a flex item at the end on different screens Try it Flex end .align-self- Align a flex item in the center Try it Flex center .align-self-*- Align a flex item in the center on different screens Try it Flex center .align-self- Align a flex item at the baseline Try it Flex baseline .align-self-*- Align a flex item at the baseline on different screens Try it Flex baseline .align-self- Stretch a flex item Try it Flex stretch .align-self-*- Stretch a flex item on different screens Try it Flex stretch Creates a flexbox container and transforms direct children into .d-flex Try it Flex flex items .d-*-flex Creates a flexbox container on a specific screen size Try it Flex .d-inline-flex Creates an inline flexbox container Try it Flex .d-*-inline-flex Creates an inline flexbox container on a specific screen size Try it Flex .flex-column Display flex items vertically Try it Flex .flex-*-column Display flex items vertically on different screen sizes: Try it Flex .flex-column- Display flex items vertically, reversed Try it Flex reverse .flex-*-column- Display flex items vertically, reversed, on different screen sizes Try it Flex reverse .flex-fill Used on flex items to force it/them into equal width columns Try it Flex .flex-*-fill Force flex items into equal widths on different screens Try it Flex Used on a single flex item to take up the rest of the available .flex-grow-0|1 Try it Flex space .flex-nowrap Don't wrap flex items Try it Flex .flex-*-nowrap Don't wrap items on different screens Try it Flex .flex-shrink-0|1 Used on a single flex item to shrink it if necessary Flex .flex-row Display flex items horizontally (side by side) Try it Flex .flex-*-row Display flex items horizontally on a specific screen size Try it Flex .flex-row- Display flex items right-aligned and horizontally Try it Flex reverse .flex-*-row- Display flex items right-aligned and horizontally on a specific Try it Flex reverse screen size .flex-wrap Wrap flex items Try it Flex .flex-*-wrap Wrap items on different screens Try it Flex .flex-wrap- Wrap flex items, in reversed order Try it Flex reverse .flex-*-wrap- Wrap flex items, in reversed order on different screens Try it Flex reverse .justify- Aligns flex items from the start, at the end, centered, Try it Flex content-* in between and "around" .justify- Aligns flex items "around" on different screen sizes Try it Flex content-*- around .justify- content-*- Aligns flex items in "between" on different screen sizes Try it Flex between .justify- content-*- Aligns flex items in the center on different screen sizes Try it Flex center .justify- Aligns flex items at the end on different screen sizes Try it Flex content-*-end .justify- Aligns flex items from the start on different screen sizes Try it Flex content-*-start .form-check Container for checkboxes. Adds proper padding Try it Forms .form-check- Makes checkboxes appear on the same line (horizontally) Try it Forms inline .form-check- Styles checkboxes with proper margins Try it Forms input .form-check- Ensures proper margins for labels used together with Try it Forms label checkboxes Used on input, textarea, and select elements to span the entire .form-control Try it Forms width of the page and make them responsive .form-control- Adds display:block and width:100% to input filed with Try it Forms file type="file" .form-control- Large form control Try it Forms lg .form-control- Styles a form control as plain text Try it Forms plaintext .form-control- Adds display:block and width:100% to input filed with Try it Forms range type="range" .form-control- Small form control Try it Forms sm .form-group Container for form input and label Try it Forms Makes a <form> left-aligned with inline-block controls (This .form-inline only applies to forms within viewports that are at least 768px Try it Forms wide) Creates a column layout for extra small devices (and up/all .col-* devices, if not combined with other column classes). The * can Try it Grid System be a number between 1 and 12 Creates a column layout for small devices (and up, if not .col-sm-* combined with other column classes). The * can be a number Try it Grid System between 1 and 12 Creates a column layout for medium devices (and up, if not .col-md-* combined with other column classes). The * can be a number Try it Grid System between 1 and 12 Creates a column layout for large devices (and up, if not .col-lg-* combined with other column classes). The * can be a number Try it Grid System between 1 and 12 Creates a column layout for extra large devices. The * can be a .col-xl-* Try it Grid System number between 1 and 12 .no-gutters Remove gutters/extra space from columns Try it Grid System .row Container for responsive columns Try it Grid System Makes a <pre> element scrollable (max-height of 350px and .pre-scrollable Try it Helpers provide a y-axis scrollbar) .embed- Container for embedded content. Makes videos or slideshows Try it Images responsive scale properly on any device .embed- Container for embedded content. Creates an 16:9 aspect ratio responsive- Try it Images embedded content 16by9 .embed- Container for embedded content. Creates an 4:3 aspect ratio responsive- Try it Images embedded content 4by3 .embed- Used inside .embed-responsive. Scales the video nicely to the responsive- Try it Images parent element item .img-fluid Responsive image (adds max-width:100% and height:auto) Try it Images .img-thumbnail Shapes an image to a thumbnail (thin light grey borders) Try it Images Container to enhance an input by adding an icon, text or a Input .input-group Try it button in front or behind the input field as a "help text" Group .input-group- Input Input group container for adding help text behind an input field Try it append Group Input .input-group-lg Large input group Try it Group .input-group- Input group container for adding help text in front of an input Input Try it prepend field Group .input-group- Input Small input group Try it sm Group .input-group- Input Styles the specified help text in an input group Try it text Group .input-lg Large input field Try it Input Sizing .input-sm Small input field Try it Input Sizing Creates a padded grey heading/box with rounded corners that .jumbotron enlarges the font sizes of the text inside it. Used for calling Try it Jumbotron extra attention to some special content or information .jumbotron- Creates a full-width jumbotron (grey padded heading) without Try it Jumbotron fluid rounded borders .list-group Creates a bordered list group for <li> elements Try it List Group .list-group- Removes some borders and rounded corners from list items in Try it List Group flush a list group .list-group-item Added to each <li> element in the list group Try it List Group .list-group- Added to links inside the list group to make them stand out on Try it List Group item-action hover (darker background) .list-group- Red background color for a list item in a list group Try it List Group item-danger .list-group- Dark grey background color for a list item in a list group Try it List Group item-dark .list-group- Light-blue background color for a list item in a list group Try it List Group item-info .list-group- Light grey background color for a list item in a list group Try it List Group item-light .list-group- Blue background color for a list item in a list group Try it List Group item-primary .list-group- Green background color for a list item in a list group Try it List Group item-success .list-group- Yellow background color for a list item in a list group Try it List Group item-warning Adds a blue background color to the active list item in a list .active Try it List Groups group Disables a list item in a list group (cannot be clicked - adds a .disabled Try it List Groups light grey color and removes the hover effect on list item links) Aligns media objects together with content (like images or Media .media Try it videos - often used for comments in a blog post etc) Objects Media .media-body Container for media content Try it Objects .fade Adds a fading effect when opening a modal Try it Modal .modal Identifies the content as a modal and brings focus to it Try it Modals Defines the style for the body of the modal. Add any HTML .modal-body Try it Modals markup here (p, img, etc) Styles the modal (border, background-color, etc). Inside this, .modal-content Try it Modals add the modal's header, body and footer, if needed .modal-dialog- Centers the modal vertically and horizontally within the page Try it Modals centered The footer of the modal (often contains an action button and a .modal-footer Try it Modals close button) The header of the modal (often contains a title and a close .modal-header Try it Modals button) .modal-lg Large modal (wider than default) Try it Modals .modal-sm Small modal (less width) Try it Modals .active Adds a white text color to the active link in a navbar. Try it Navbar .navbar Creates a navigation bar Try it Navbar .navbar-nav Container for navigation links inside the .navbar container Try it Navbar Added to a link or a header element inside the navbar to .navbar-brand Try it Navbar represent a logo or a header .navbar- Collapses the navbar (hidden and replaced with a Try it Navbar collapse menu/hamburger icon on mobile phones and small tablets) .navbar- Responsive collapsible class - stacks the navbar vertically on Try it Navbar expand-* small (sm), medium (md), large (lg) or extra large (xl) screens .navbar-dark Adds a white text color to all links in the navbar Try it Navbar .navbar-light Adds a black text color to all links in the navbar Try it Navbar Vertically align any elements inside the navbar that are not .navbar-text Try it Navbar links (ensures proper padding) Styles the button that should open the navbar on small screens. .navbar-toggler Try it Navbar Automatically styled as a hamburger/three bars .navlink Used to style links/anchors inside the navbar Try it Navbar .nav-item Used to style list items inside the navbar Try it Navbar .fade Adds a fading effect when showing tab/pill content Try it Navs Adds a blue background color to the active pagination link (to .active Try it Pagination highlight the current page) A pagination. Indicates the current page's location within a .breadcrumb Try it Pagination navigational hierarchy .breadcrumb- Styles list items or links inside the breadcrumb Try it Pagination item Disables a pagination link (cannot be clicked - adds a grey text .disabled Try it Pagination color and a "no-parking-sign" icon on hover) .page-item Styles list items inside a pagination Try it Pagination .page-link Styles links inside a pagination Try it Pagination Creates a pagination (Useful when you have a web site with .pagination Try it Pagination lots of pages Large pagination (each pagination link gets a bigger font-size .pagination-lg Try it Pagination and more padding) Small pagination (each pagination link gets a smaller font size .pagination-sm Try it Pagination and less padding) Progress .progress Container for progress bars Try it Bars Progress .progress-bar Creates a progress bar Try it Bars .progress-bar- Progress Animates the progress bar (used together with stripes) Try it animated Bars .progress-bar- Progress Adds stripes to the progress bar Try it striped Bars .table Adds basic styling to a table (padding, bottom borders, etc) Try it Tables Adds a grey background color to the table row (<tr> or table .table-active Try it Tables cell (<td>) (same color used on hover) .table- Adds borders on all sides of the table and cells Try it Tables bordered .table- Remove borders from a table Try it Tables borderless .table- Makes a table more compact by cutting cell padding in half Try it Tables condensed .table-dark Adds a black background with white text to the table Try it Tables Creates a hoverable table (adds a grey background color on .table-hover Try it Tables table rows on hover) Makes a table responsive (adds a horizontal scrollbar when needed). By default, the scrollbar is added to the table on .table- screens that are less than 992px wide (if needed). There's no Try it Tables responsive-* difference when viewing anything lager than 992px wide. However, you can use sm|md|lg|xl to decide WHEN the table should get a scrollbar, depending on the screen width .table-striped Adds zebra-stripes to a table Try it Tables .thead-dark Adds a black background color to table headers Try it Tables .thead-light Adds a grey background color to table headers Try it Tables .nav nav-tabs Creates a tabbed menu Try it Tabs .nav nav-pills Creates a pill menu Try it Tabs .nav-justified Justifies tab/pill links with an equal width Try it Tabs Used together with .tab-pane to creates toggleable/dynamic .tab-content Try it Tabs tabs/pills Used together with .tab-content to creates toggleable/dynamic .tab-pane Try it Tabs tabs/pills Styles quoted blocks of content from another source (adds a .blockquote Try it Typography larger font-size (1.25rem)) .blockquote- Styles the source title inside the blockquote (light grey text Try it Typography footer with indentation) .font-weight- Bold text Try it Typography bold .font-weight- Italic text Try it Typography italic .font-weight- Light weight text (font-weight:300) Try it Typography light .font-weight- Normal text (font-weight:400) Try it Typography normal Makes an element look like a heading of the chosen class (h1- .h1 - .h6 Try it Typography h6) Displays the text inside an <abbr> element in a slightly smaller .initialism Try it Typography font size .lead Increase the font size and line height of a paragraph Try it Typography Places all list items on a single line (used together with .list- .list-inline Try it Typography inline-item on each <li> elements) Places all list items on a single line (used together with .list- .list-inline-item Try it Typography inline on the parent <ul> element) Removes all default list-style (bullets, left margin, etc.) styling .list-unstyled Try it Typography from a <ul> or <ol> list .mark Highlights text: Highlighted text Try it Typography .small Creates a lighter, secondary text in any heading Try it Typography .text-capitalize Indicates capitalized text Try it Typography .text-center Center-aligns text Try it Typography .text-*-center Center-aligns text on different screens Try it Typography .text-dark Dark grey text color Try it Typography Hides text (helps replace an element's text content with a .text-hide Try it Typography background image) .text-justify Indicates justified text Try it Typography .text-left Aligns the text to the left Try it Typography .text-*-left Left-aligns text on different screens Try it Typography .text-lowercase Changes text to lowercase Try it Typography .text-nowrap Prevents the text from wrapping Try it Typography .text-right Aligns text to the right Try it Typography .text-*-right Right-aligns text on different screens Try it Typography .text-uppercase Makes text uppercase Try it Typography The element is aligned with the baseline of the parent. This is .align-baseline Try it Utilities default .align-bottom The element is aligned with the lowest element on the line Try it Utilities .align-middle The element is placed in the middle of the parent element Try it Utilities The element is aligned with the top of the tallest element on .align-top Try it Utilities the line The element is aligned with the top of the parent element's .align-text-top Try it Utilities font .align-text- The element is aligned with the bottom of the parent element's Try it Utilities bottom font .border Adds a border to an element Try it Utilities .border- Removes the bottom border from an element Try it Utilities bottom-0 .border-danger Adds a red border to an element (indicates danger) Try it Utilities .border-dark Adds a dark border to an element Try it Utilities .border-info Adds a teal border to an element (indicates information) Try it Utilities .border-left-0 Removes the left border from an element Try it Utilities .border-light Adds a light grey border to an element Try it Utilities .border- Adds a blue border to an element Try it Utilities primary .border-right-0 Removes the right border from an element Try it Utilities .border-top-0 Removes the top border from an element Try it Utilities .border- Adds a grey border to an element Try it Utilities secondary .border-success Adds a green border to an element (indicates success) Try it Utilities .border- Adds a orange border to an element (indicates warning) Try it Utilities warning .border-white Adds a white border to an element Try it Utilities .border-0 Removes all borders from an element Try it Utilities .clearfix Clears floats Try it Utilities Styles a close icon. This is often used for alerts and modals. .close Often used together with the × symbol to create the Try it Utilities actual icon (a better lookiong "x"). It floats right by default .d-block Creates a block element (adds display:block) Try it Utilities .d-*-block Creates a block element on a specific screen width Try it Utilities Makes an element stay at the bottom of the screen .fixed-bottom Try it Utilities (sticky/fixed) .fixed-top Makes an element stay at the top of the screen (sticky/fixed) Try it Utilities .float-left Floats an element to the left Try it Utilities .float-*-left Floats an element to the left on different screens Try it Utilities .float-none Remove floats from an element Try it Utilities .float-right Floats an element to the right Try it Utilities .float-*-right Floats an element to the left on different screens Try it Utilities .h-25 Sets the height of an element to 25% Try it Utilities .h-50 Sets the height of an element to 50% Try it Utilities .h-75 Sets the height of an element to 75% Try it Utilities .h-100 Sets the height of an element to 100% Try it Utilities .invisible Make an element invisible Try it Utilities Responsive margin classes. * can be sm, md, lg or xl. # can be a .m-# / m-*-# Try it Utilities number between 0 and 5 Responsive top margin classes. * can be sm, md, lg or xl. # can .mt-# / mt-*-# Try it Utilities be a number between 0 and 5 Responsive bottom margin classes. * can be sm, md, lg or xl. # .mb-# / mb-*-# Try it Utilities can be a number between 0 and 5 Responsive left margin classes. * can be sm, md, lg or xl. # can .ml-# / ml-*-# Try it Utilities be a number between 0 and 5 Responsive right margin classes. * can be sm, md, lg or xl. # can .mr-# / mr-*-# Try it Utilities be a number between 0 and 5 Responsive left and right margin auto (horizontal) classes. * can .mx-# / mx-*-# Try it Utilities be sm, md, lg or xl. # can be a number between 0 and 5 Responsive top and bottom margin auto (vertical) classes. * can .my-# / my-*-# Try it Utilities be sm, md, lg or xl. # can be a number between 0 and 5 .mx-auto Centers an element horizontally Try it Utilities Responsive padding classes. * can be sm, md, lg or xl. # can be .p-# / p-*-# Try it Utilities a number between 0 and 5 Responsive top padding classes. * can be sm, md, lg or xl. # can .pt-# / pt-*-# Try it Utilities be a number between 0 and 5 Responsive bottom padding classes. * can be sm, md, lg or xl. # .pb-# / pb-*-# Try it Utilities can be a number between 0 and 5 Responsive left padding classes. * can be sm, md, lg or xl. # can .pl-# / pl-*-# Try it Utilities be a number between 0 and 5 Responsive right padding classes. * can be sm, md, lg or xl. # .pr-# / pr-*-# Try it Utilities can be a number between 0 and 5 Responsive top and bottom padding classes. * can be sm, md, .py-# / py-*-# Try it Utilities lg or xl. # can be a number between 0 and 5 Responsive left and right padding classes. * can be sm, md, lg .px-# / px-*-# Try it Utilities or xl. # can be a number between 0 and 5 .rounded Adds rounded corners to an element Try it Utilities .rounded- Adds bottom rounded corners to an element Try it Utilities bottom .rounded-circle Shapes an element to a circle (not supported in IE8 and earlier) Try it Utilities .rounded-left Adds left rounded corners of an element Try it Utilities .rounded-right Adds right rounded corners to an element Try it Utilities .rounded-top Adds top rounded corners to an element Try it Utilities .rounded-0 Removes rounded corners from an element Try it Utilities .shadow Adds a shadow to an element Try it Utilities .shadow-lg Adds a large shadow to an element Try it Utilities .shadow-md Adds a medium shadow to an element Try it Utilities .shadow-none Removes shadows from an element Try it Utilities .shadow-sm Adds a small shadow to an element Try it Utilities .sr-only Hides an element on all devices except for screen readers Try it Utilities .sr-only- Hides an element on all devices except for screen readers Try it Utilities focusable Makes an element stay sticky/fixed at the top of the page when .sticky-top Try it Utilities you scroll past it .visible Make an element visible Try it Utilities .w-25 Sets the width of an element to 25% Try it Utilities .w-50 Sets the width of an element to 50% Try it Utilities .w-75 Sets the width of an element to 75% Try it Utilities .w-100 Sets the width of an element to 100% Try it Utilities