Bootstrap supports ordered lists, unordered lists, and definition lists.
Ordered lists : An ordered list is a list that falls in some sort of sequential order and is prefaced by numbers.
Unordered lists : An unordered list is a list that doesn't have any particular order and is traditionally styled with bullets. If you do not want the bullets to appear then you can remove the styling by using the class .list-unstyled. You can also place all list items on a single line using the class .list-inline.
Definition lists : In this type of list, each list item can consist of both the <dt> and the <dd> elements. <dt> stands for definition term, and like a dictionary, this is the term (or phrase) that is being defined. Subsequently, the <dd> is the definition of the <dt>.
You can make terms and descriptions in <dl> line up side-by-side using class dl-horizontal.
.btn-toolbar helps to combine sets of <div class = "btn-group"> into a <div class = "btn-toolbar"> for more complex components.
Mark Otto and Jacob Thornton at Twitter
The Scrollspy (auto updating nav) plugin allows you to target sections of the page based on the scroll position. In its basic implementation, as you scroll, you can add .active classes to the navbar based on the scroll position.
As the name suggest this component can optionally increase the size of headings and add a lot of margin for landing page content.
To use the Jumbotron:
Offsets are a useful feature for more specialized layouts. They can be used to push columns over for more spacing, for example. The .col-xs = * classes don't support offsets, but they are easily replicated by using an empty cell.
You can customize links by using .disabled for unclickable links and .active to indicate the current page.
The trition plugin provides simple trition effects such as Sliding or fading in modals.
You can add footers to panels, by wrapping buttons or secondary text in a <div> containing class .panel-footer.
Glyphicons are symbols and icon fonts which are created for providing simplicity and easy orientation in your web projects. Glyphicons Halflings are normally not available for free use and they require licensing but their creator has made them cost free for Bootstrap projects. Bootstrap includes more than 250 glyphs from the Glyphicon Halflings set. To use the icons, we need to write <span class = "glyphicon glyphicon-search"></span> code anywhere in our program.
Badges are similar to labels; the primary difference is that the corners are more rounded. Badges are mainly used to highlight new or unread items. To use badges just add <span class = "badge"> to links, Bootstrap navs, and more.
The major benefits of using Bootstrap are-
Bootstrap uses Normalize to establish cross browser consistency.
Normalize.css is a modern, HTML5-ready alternative to CSS resets. It is a small CSS file that provides better cross-browser consistency in the default styling of HTML elements.
Glyphicons are icon fonts which you can use in your web projects. Glyphicons Halflings are not free and require licensing, however their creator has made them available for Bootstrap projects free of cost.
Yes! To get a non-bordered table within a panel, use the class .table within the panel. Suppose there is a <div> containing .panel-body, we add an extra border to the top of the table for separation. If there is no <div> containing .panel-body, then the component moves from panel header to table without interruption.
Responsive layout's design automatic adjusts to the browser size but when resizing, the number of columns changes according to the space available.
To add some emphasis to a paragraph, add class = "lead". This will give you larger font size, lighter weight, and a taller line height.
Whenever there is a need of putting the contents in a bordered box with some padding around, panel components are used. They can be created with the .panel class and content inside the panel has a .panel-body class. For creating a basic panel, add class .panel to the <div> element and add class .panel-default to this element.
A well is a container in that causes the content to appear sunken or an inset effect on the page. To create a well, simply wrap the content that you would like to appear in the well with a containing the class of .well.
A modal is a child window that is layered over its parent window. Typically, the purpose is to display content from a separate source that can have some interaction without leaving the parent window. Child windows can provide information, interaction, or more.
Bootstrap package includes:
Whenever a web site has lots of pages, we need to do pagination to each page. In Bootstrap, we can create a basic pagination by adding the .pagination class to an <ul> element.
Two layouts are available in Bootstrap-
Bootstrap includes a responsive, mobile first fluid grid system that appropriately scales up to 12 columns as the device or viewport size increases. It includes predefined classes for easy layout options, as well as powerful mixins for generating more semantic layouts.
.pagination class is used to add the pagination on a page.
The affix plugin allows a to become affixed to a location on the page. You can also toggle it's pinning on and off using this plugin. A common example of this are social icons. They will start in a location, but as the page hits a certain mark, the will be locked in place and will stop scrolling with the rest of the page.
.btn-group-lg, .btn-group-sm, .btn-group-xs classes can be applied to button group instead of resizing each button.
Bootstrap 3 allows to make the images responsive by adding a class .img-responsive to the <img> tag. This class applies max-width: 100%; and height: auto; to the image so that it scales nicely to the parent element.
The page header is a nice little feature to add appropriate spacing around the headings on a page. This is particularly helpful on a web page where you may have several post titles and need a way to add distinction to each of them. To use a page header, wrap your heading in a <div> with a class of .page-header.
To create a default navbar:
Bootstrap sets a basic global display (background), typography, and link styles:
Basic Global display − Sets background-color: #fff; on the <body> element.
Typography − Uses the @font-family-base, @font-size-base, and @line-height-base attributes as the typographic base
Link styles − Sets the global link color via attribute @link-color and apply link underlines only on :hover.
Bootstrap labels are great for offering counts, tips, or other markup for pages. Use class .label to display labels.
List group is a powerful and flexible component to display simple and complex elements together with custom contents. A simple list group is created using class .list-group to address the list with usage of <ul> element, and class .list-group-item to address individual item with usage of <li> elements.
Breadcrumbs are a great way to show hierarchy-based information for a site. In the case of blogs, breadcrumbs can show the dates of publishing, categories, or tags. They indicate the current page's location within a navigational hierarchy.
A breadcrumb in Bootstrap is simply an unordered list with a class of .breadcrumb. The separator is automatically added by CSS (bootstrap.min.css).
Yes You can include list groups within any panel. Create a panel by adding class .panel to the element. Also add class .panel-default to this element. Now within this panel include your list groups.
You can easily change the order of built-in grid columns with .col-md-push-* and .col-md-pull-* modifier classes where * range from 1 to 11.
The Bootstrap carousel is a flexible, responsive way to add a slider to your site. In addition to being responsive, the content is flexible enough to allow images, iframes, videos, or just about any type of content that you might want.
.btn-group class is used for a basic button group. Wrap a series of buttons with class .btn in .btn-group.
Media Queries in Bootstrap allow you to move, show and hide content based on viewport size.
Show a basic grid structure in Bootstrap.
Following is basic structure of Bootstrap grid:
<div class = "container">
<div class = "row">
<div class = "col-*-*"></div>
<div class = "col-*-*"></div>
<div class = "row">...</div>
<div class = "container">....
Yes, sure. The main difference is that Fluid Layout are built using widths percentages and they are based on proportionally laying out the website so elements take up the same percent of space on different screen sizes. Responsive Layout is built on a fluid grid and here CSS Media Queries are used to present different layouts based on different screen sizes.
Use contextual state classes such as, panel-primary, panel-success, panel-info, panel-warning, panel-danger, to make a panel more meaningful to a particular context.
Button groups allow multiple buttons to be stacked together on a single line. This is useful when you want to place items like alignment buttons together
Main components of Bootstrap are-
Reusable Components : It contains plenty of reusable layout components
CSS : It contains lots of CSS files
Scaffolding : It comes with a basic structure with link styles, grid system and background
Customization: You have a freedom to customize components as per your wish