Buttons are used everywhere in applications. Use the Rocket CSS buttons component to add navigation to your site.
Creating a Rocket CSS button is easy. Simply add a few classes to get started and modify your button. The .btn
class works on the following elements
<a>
anchor links.
<button>
elements, and form buttons.
Change the colour of a button by adding one of the following classes:
.btn-primary
.btn-secondary
.btn-success
.btn-warning
.btn-danger
.btn-info
.btn-dark
.btn-light
.btn-black
.btn-white
You can create an outline button in a similar way to creating solid buttons, simply specify btn-outline-primary
or whichever colour you'd like to add:
.btn-outline-primary
.btn-outline-secondary
.btn-outline-success
.btn-outline-warning
.btn-outline-danger
.btn-outline-info
.btn-outline-dark
.btn-outline-light
.btn-outline-black
.btn-outline-white
You can add a class for controlling the size of a button, simply add one of the following:
.btn-small
.btn-medium
.btn-large
Rocket CSS comes with a class to make buttons rounded, simply add the followng:
.btn-rounded
To make a button take up the full width of a page, add the .btn-block
class:
.btn-block