Author: Awais Farooq
-
Colors
By using utility classes you can change the color of the text. It can also be used to links and will darken on hover just like our default link styles. Syntax: Muted Class: Primary Class: Success: Info: Warning: Danger: White: Contextual text classes can also be used with anchors tags with the provided hover and…
-
Close icon
Close icon is used for dismissing content like modals and alerts. Be sure to include text for screen readers, as we’ve done with aria-label. Syntax:
-
Clearfix
Clearfix is used to easily clear floats by adding .clearfix to the parent element. It utilizes the micro clearfix as popularized by Nicolas Gallagher. It can also be used as a mixin. Syntax: How to use in mixin How to use Clearfix Let’s take an example to see how the clearfix can be used. Without…
-
Borders
Border utility is used to quickly change the border-style and border-radius of an element. It is mainly used for images, buttons, or any other element. You can use the border classes to an element to remove all borders or some borders. Syntax: For no border: To remove top-border: To remove right-border: To remove bottom-border: To…
-
Bootstrap Scrollspy
The Bootstrap Scrollspy plugin is used to automatically update links in a navigation list based on scroll position. See this example: Bootstrap Vertical Scrollspy Menu You can also use vertical navigation pills as menu. See this example:
-
Bootstrap Popover
The bootstrap popover plugin is very similar to tooltips. It appears as a pop-up box when the user clicks on an element. The difference is that the popover can contain much more content. To create a popover, add the data-toggle=”popover” attribute to an element and the title attribute to specify the header text of the popover, the…
-
Bootstrap Modals
The bootstrap modal plugin is a dialog box / popup window that is displayed on top of the current page. Bootstrap Modal Example Bootstrap Modal Size You can change the size of the modal by adding the .modal-sm class for small modals or .modal-lg class for large modals. The size class is added to the <div> element with class…
-
Bootstrap Inputs
Bootstrap Input Types Input type: checkbox Input type: radio button Bootstrap Checkbox Checkbox facilitates you to select any number of options from a list of present options. See this example: Use the .checkbox-inline class if you want the checkboxes to appear on the same line: See this example: Bootstrap Radio Buttons Radio buttons also facilitates you to…
-
Bootstrap Navigation Bar
A navigation bar is like a navigation header that is placed at the top of the page. You can collapse or extend it according to the screen size. You can create a standard navigation bar at the top of the page with with <nav class=”navbar navbar-default”>. See this example: Bootstrap Inverted Navigation Bar Inverted navigation bar…
-
Bootstrap Tabs and Pills
Bootstrap Menus Menus are used in most of the web pages. These are defined in an unordered list <ul>. You have to add the .list-inline class to <ul> to create a horizontal menu. See this example: Bootstrap Tabs You can create a basic navigation tag with <ul class=”nav nav-tabs”>. You can also mark the current page with <li class=”active”>.…