Bootstrap Classes | Basics

Bootstrap Classes
The following table shows all the Bootstrap classes and their uses
Class Name Definition
form-controlAdds styling to a form element such as text field, checkbox, etc.
form-groupAdds styling to a small subset of form element(s) and their respective labels
rowAdds styilng so that the column based elents can fit inside the whole width spanned by the row
col-xs-*Allocxates * fraction of the total screen width. xs stands for extra small screen size devices like smartphones
col-sm-*Allocxates * fraction of the total screen width. sm stands for small screen size devices like large smartphones or mini-tablets
col-md-*Allocxates * fraction of the total screen width. md stands for medium screen size devices like tablets, Kindle, etc.
col-lg-*Allocxates * fraction of the total screen width. lg stands for large screen size devices like a 14 inch laptop or 15.6 inch laptop
col-xl-*Allocxates * fraction of the total screen width. xl stands for extra large screen size devices like desktops
btnApplies basic styleing to a button
textApplies basic styling to a text
badgeCreates a basic count or other attribute about an element besisde the element
btn-primaryAdds a bluish radial gradient as the background of a button with very low varience in the starting and the ending color
btn-dangerAdds a reddish radial gradient as the background of a button with very low varience in the starting and the ending color
btn-defaultAdds a whitish radial gradient as the background of a button with very low varience in the starting and the ending color
btn-secondaryAdds a greyish radial gradient as the background of a button with very low varience in the starting and the ending color
btn-successAdds a greenish radial gradient as the background of a button with very low varience in the starting and the ending color
btn-warningAdds a orangish radial gradient as the background of a button with very low varience in the starting and the ending color
w-*Adds width specvified in place of * like w-200 will allocate a width of 200px to the element
h-*Adds height specified in place of * like h-200 will allocate a height of 200px to the element
modalCreates a simple dialog box
modal-headerCreates a simple dialog box's title bar
modal-footerCreates a simple dialog box's bottom bar
modal-bodyCreates a paragraph for the information to be displayed in a dialog box
tableCreates a simple table
table-stripedCreates a table with zebra-striped rows
table-responsiveCreates a simple table which will display equally well in all the device sizes
breadcrumbCreates a hierarchy of directories from which the current page is reached by the user
text-primaryAdds a bluish radial gradient as the color of a text with very low varience in the starting and the ending color
text-dangerAdds a reddish radial gradient as the color of a text with very low varience in the starting and the ending color
text-defaultAdds a whitish radial gradient as the color of a text with very low varience in the starting and the ending color
text-secondaryAdds a greyish radial gradient as the color of a text with very low varience in the starting and the ending color
text-successAdds a greenish radial gradient as the color of a text with very low varience in the starting and the ending color
text-warningAdds a orangish radial gradient as the color of a text with very low varience in the starting and the ending color
carouselAdds a slideshow of images with controls
fadeAdds a fade in animation to an element (for e.g.,dialog box)
badge-primaryAdds a bluish radial gradient to the notification of a element with very low varience in the starting and the ending color
badge-dangerAdds a reddish radial gradient to the notification of a element with very low varience in the starting and the ending color
badge-defaultAdds a whitish radial gradient to the notification of a element with very low varience in the starting and the ending color
badge-secondaryAdds a greyish radial gradient to the notification of a element with very low varience in the starting and the ending color
badge-successAdds a greenish radial gradient to the notification of a element with very low varience in the starting and the ending color
badge-warningAdds a orangish radial gradient to the notification of a element with very low varience in the starting and the ending color
dropdownA dropdown menu is a toggleable menu that allows the user to choose one value from a predefined list:

We will see each of the above in detail in a future post.

Comments

Popular posts from this blog

XPath for HTML markup

Apache Hadoop | Running MapReduce Jobs

Laravel | PHP | Basics | Part 2