From the course: Bootstrap 4 Essential Training

Unlock the full course today

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

Using borders

Using borders - Bootstrap Tutorial

From the course: Bootstrap 4 Essential Training

Start my 1-month free trial

Using borders

- [Instructor] Bootstrap also gives you ways to control the border on elements. And you can very easily specify that a border appear on one of the sides. So you can say border and then dash top, right, bottom, left and in addition to that, we can control the color of the border so you can specify primary, secondary, success, danger, or warning and some of the other contextual colors that you see here as well. And you also have the option of clearing out a border. So for that, you specify border dash zero and in addition to that some of these classes have be to combined. So we'll look at an example in just a minute. There's also a way of controlling the roundness of the edges of the borders that you're creating. And for that, this works pretty much like what we did when we worked with images so you have this rounded class and then you can specify a side to control the roundness on that side so top, right, bottom, left. Or you can specify a rounded and then specify a shape. So a rounded…

Contents