buttons

A typical button can be added to page using following markup:

<a href="#" class="btn">--caption on button---</a>

Size

By adding size related classes to .btn class-name, various sizes of buttons can be achieved:

  • .btn-extra-small stans for a very small button

  • .btn-small stans for a small button

  • .btn-medium stans for a medium button

  • .btn-large stans for a large button

Shape

Various shapes for your buttons are availabe.

Rounded corner

Just add .btn-round

Circle

Just add .btn-circle

Wide

Just add .btn-wide

Thick border

Just add .btn-thick-border

Coloring and Skin

Sometime you would want to add ad shiny button to grab your visitor's attention.

Transparent buttons

In some cases you would wish to use a button with transparent background. The it is already there and you can use three classes

.btn-trans which is notmal transparency

there are tow class-names that can be added to this class in order to acheive a better visual for dark and white scenarios:

  • .btn-tans .btn-skin-dark to use the botton in light and white backgrounds.

  • .btn-tans .btn-skin-white if you want to use the botton in dark backgrounds.

Skins

You can choose from 6 color variations by adding these classes to the element.

  • .btn-skin-red

  • .btn-skin-green

  • .btn-skin-cyan

  • .btn-skin-yellow

  • .btn-skin-dark

  • .btn-skin-blue

eg: here is the code sample for the below image:

Button with Icon

You can add any icon to the right or left of a button using the followign markup:

Above code will generate the following:

To add the icon to the right side of the button you will need to add .btn-icon-right class to the button:

Animated Icons

To get the icon to anomate on hover use the following code sample

As you can see the only difference is the addition of .btn-anim-i class.

You can achieve the simillar effect on the right of icons by simply adding .btn-icon-right:

Drawer Effect

Just add the .btn-anim-drawer class to the btn

Simply add .btn-skin-dark to get above effect at dark containers

Split Effect

The markup for this special effect of button is as bellow:

Note the additional data-text and class of .btn-an-split

Boootstrap Default Buttons

You can use the built-in bootstrap buttons if you want. Justo go to the bootstrap documentation and learn how.

Last updated