02.06.2015 Views

Bootstrap Tutorial

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

CHAPTER<br />

9<br />

<strong>Bootstrap</strong> Buttons<br />

This chapter will discuss about how to use <strong>Bootstrap</strong> button with examples. Anything that is given a class<br />

of .btn will inherit the default look of a gray button with rounded corners. However <strong>Bootstrap</strong> provides some<br />

options to style buttons, which are summarized in the following table:<br />

Class<br />

Btn<br />

btn-primary<br />

btn-success<br />

btn-info<br />

btn-warning<br />

btn-danger<br />

btn-link<br />

Description<br />

Default/ Standard button.<br />

Provides extra visual weight and identifies the primary action in a set of buttons.<br />

Indicates a successful or positive action.<br />

Contextual button for informational alert messages.<br />

Indicates caution should be taken with this action.<br />

Indicates a dangerous or potentially negative action.<br />

Deemphasize a button by making it look like a link while maintaining button behavior.<br />

Following example demonstrates all the above button classes:<br />

<br />

Default Button<br />

<br />

Primary Button<br />

<br />

Success Button<br />

<br />

Info Button<br />

<br />

Warning Button<br />

<br />

Danger Button<br />

TUTORIALS POINT<br />

Simply Easy Learning

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!