From the course: Bootstrap 4 Essential Training

Unlock the full course today

Join today to access over 22,400 courses taught by industry experts or purchase this course individually.

Create buttons

Create buttons - Bootstrap Tutorial

From the course: Bootstrap 4 Essential Training

Start my 1-month free trial

Create buttons

- [Instructor] Now there are a number of classes that help you create buttons, so let's take a look at them in this video. Now the basic class for creating any kind of button is the btn class, however, you usually use them with some additional classes. For example you can use the btn and then specify a size which can be either sm or lg. Obviously sm is for a small button and lg is for a larger button. You can use button classes on any of these elements including anchor tags, buttons, and input fields and they will always look exactly the same. Now you do have to specify at least one of the contextual color classes. So you would say btn and then hyphen and then one of these colors that you see right here. There is an alternative for outlines which looks like this, you say btn and then outline and then one of the contextual color classes that you see right here. In addition to that there's a special style called btn block that you can add if you want a button to occupy the entire width…

Contents