Bootstrap

  Home  Web Development  Bootstrap


“Bootstrap based Frequently Asked Questions by expert members with experience as Bootstrap. These questions and answers will help you strengthen your technical skills, prepare for the new job test and quickly revise the concepts”



128 Bootstrap Questions And Answers

61⟩ Tell me how will you create a progress bar using bootstrap?

To create a basic progress bar −

☛ Add a <div> with a class of .progress.

☛ Next, inside the above <div>, add an empty <div> with a class of .progress-bar.

☛ Add a style attribute with the width expressed as a percentage. Say for example, style = "60%"; indicates that the progress bar was at 60%.

 121 views

62⟩ Tell me what is Contextual classes of table in Bootstrap?

The Contextual classes allow you to change the background color of your table rows or individual cells.

Class Description

.active Applies the hover color to a particular row or cell

.success Indicates a successful or positive action

.warning Indicates a warning that might need attention

.danger Indicates a dangerous or potentially negative action

 136 views

64⟩ Do you know why use Bootstrap?

Bootstrap can be used as −

☛ Mobile first approach − Since Bootstrap 3, the framework consists of Mobile first styles throughout the entire library instead of in separate files.

☛ Browser Support − It is supported by all popular browsers.

☛ Popular Browser

☛ Easy to get started − With just the knowledge of HTML and CSS anyone can get started with Bootstrap. Also the Bootstrap official site has a good documentation.

☛ Responsive design − Bootstrap's responsive CSS adjusts to Desktops,Tablets and Mobiles.

☛ Provides a clean and uniform solution for building an interface for developers.

☛ It contains beautiful and functional built-in components which are easy to customize.

☛ It also provides web based customization.

☛ And best of all it is an open source.

 139 views

65⟩ Tell me how to customize thumbnails using Bootstrap?

it's possible to add any kind of HTML content like headings, paragraphs, or buttons into thumbnails. Follow the steps below −

☛ Change the <a> tag that has a class of .thumbnail to a <div>.

☛ Inside of that <div>, you can add anything you need. As this is a <div>, we can use the default span-based naming convention for sizing.

☛ If you want to group multiple images, place them in an unordered list, and each list item will be floated to the left.

 140 views

67⟩ Tell me what is affix plugin?

The affix plugin allows a <div> 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 <div> will be locked in place and will stop scrolling with the rest of the page.

 139 views

68⟩ Do you know what are bootstrap media objects?

These are abstract object styles for building various types of components (like blog comments, Tweets, etc.) that feature a left-aligned or right-aligned image alongside the textual content. The goal of the media object is to make the code for developing these blocks of information drastically shorter.

The goal of media objects (light markup, easy extendability) is achieved by applying classes to some of the simple markup.

 124 views

70⟩ Tell me what are Offset columns?

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.

 161 views

74⟩ Explain what is grid system in bootstrap?

Bootstrap provides a responsive grid system that appropriately scales up to 12 columns as the device or viewport size increases. To create a responsive layout using bootstrap 12 column structure these points need to be considered

☛ All the rows must be placed inside of a div having class .container or .container-fluid

☛ Create a div having class .row to group column

☛ Add columns inside row as immediate children of row

☛ Place all content inside columns

☛ There are pre-defined classes for columns. These classes are col-md-*, col-sm-*, col-lg-*, col-sx-*where * represent number from 1 to 12. These classes take effect as per viewport of the device.

if a row has column with class .col-sm-4 then it mean it will occupy first 4 column for small device and full width in extra small device.

similarly column with class .col-sm-8 will occupy next 8 column in the row and full width for extra small device.

 148 views

76⟩ Tell me what are the steps for creating basic or vertical forms?

The steps for creating basic or vertical forms are

☛ Add a role form to the parent <form> element

☛ Wrap labels and controls in a <div> with class .form-group. To achieve optimum spacing this is needed

☛ Add a class of .form-control to all texturl <input> , <textarea> , and <select> elements

 145 views

77⟩ Tell me what are offset columns in Bootstrap?

For more specialized layouts offsets are a useful feature. For more spacing they can be used by pushing column over.

For example, .col-xs=* classes do not support offset but they are easily replicated using an empty cell

 153 views