From the course: Bootstrap 5 Essential Training

Unlock this course with a free trial

Join today to access over 25,300 courses taught by industry experts.

Borders

Borders

- [Instructor] There's a couple of classes that help you add certain styles, like borders, to block elements, round edges, and shadows in various directions, so let's take a look at how those work. We'll start out with borders. So with borders, you can add a basic border class and it will give the element a border, and there's actually a couple of different versions of this. You can add an additive border class, which would allow you to specify a side. So you can say top and bottom start. Again, end would be the right-hand side in non-RTL mode and start would be the beginning or the left-hand side. So, remember that Bootstrap is now right to left compliant. So, it gives you those options. And then you can also choose to show a border, but then subtract one of the sides, and you do that with this class, border zero, and then one of the sides, same modifiers as well. So let's take a look at how they work and this is one place where you may want to play around with these. So, we can add…

Contents