Fluid layout adapts itself to different browser. Means design automatic adjust according to browser size.
Fixed layout doesn't adapts itself to different browser but it can be responsive.
Responsive layout which is able to adapt itself to different sizes as well, but when resizing, the number of columns changes according to the available space.
Fluid layout adapts itself to different browser window sizes, all the values used are calculated proportionally to the viewport size, so when resizing, all the columns are resized.
Responsive layout is able to adapt itself to different sizes as well. When resizing, the number of columns changes according to the available space.
Via data attributes- Add
data-toggle = "dropdown"to a link or button to toggle a dropdown as shown below -
<div class = "dropdown"> <a data-toggle = "dropdown" href = "#">Dropdown trigger</a> <ul class = "dropdown-menu" role = "menu" aria-labelledby = "dLabel"> ... </ul> </div>
data-targetattribute instead of
<div class = "dropdown"> <a id = "dLabel" role = "button" data-toggle = "dropdown" data-target = "#" href = "/page.html"> Dropdown <span class = "caret"></span> </a> <ul class = "dropdown-menu"" role = "menu"" aria-labelledby = "dLabel"> ... </ul> </div>
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.
<span class = "glyphicon glyphicon-search"></span>
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.
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.
The steps for creating basic or vertical forms are
(i) Add a role form to the parent <form> element
(ii) Wrap labels and controls in a <div> with class .form-group. To achieve optimum spacing this is needed
(iii) Add a class of .form-control to all texturl <input> , <textarea> , and <select> elements
A modal is a child window that is layered over its parent window. Using a custom Jquery Plugin, Bootstrap Modal are created. To enrich user experience and to add functionality to users, modal windows are created with the help of Modal plugin.
Bootstrap container is a class which is useful and creates a centred area within the page where our site content can be put within. The advantage of the bootstrap .container is that it is responsive and will place all our other HTML code.
Input groups are extended Form Controls. Using input groups you can easily prepend and append text or buttons to the text-based inputs.
By adding prepended and appended content to an input field, you can add common elements to the user's input. For example, you can add the dollar symbol, the @ for a Twitter username, or anything else that might be common for your application interface.
To prepend or append elements to a .form-control -
<i> Wrap it in a <div> with class .input-group
<ii> As a next step, within that same <div> , place your extra content inside a <span> with class .input-group-addon.
<iii> Now place this <span> either before or after the <input> element.
The navbar is one of the prominent features of Bootstrap sites. Navbars are responsive 'meta' components that serve as navigation headers for your application or site. Navbars collapse in mobile views and become horizontal as the available viewport width increases. At its core, the navbar includes styling for site names and basic navigation.
List groups are components to display both simple and complex element with custom content
For example, a simple list group is created using class .list-group to address the list, and class .list-group-item to address individual item.