Bootstrap Borders
- Bootstrap provides classes for adding borders to elements.
- Borders can be added to buttons, images, divs, tables, and more.
- In this page, we will discuss how to add borders to elements using Bootstrap.
Syntax
To add a border to an element, you can use the following syntax:
border-{side}-{size}
{side}
is the side of the border you want to add (e.g. top, right, bottom, left, or x (both left and right) or y (both top and bottom)).{size}
is the size of the border you want to add (e.g. 1px, 2px, 3px, or 4px).