Dividers
Bootstrap 5 Dividers
Divider lines for Bootstrap 5 layouts. Examples of horizontal divider lines (hr) as well as vertical divider lines for clearer organization of your content.
Basic example
The default divider is 1px
thick and dark gray in color. But MDB prefers slightly more subtle elements, so by adding the hr
class to the <hr>
element we add a light gray color to the divider. However, so that the divider does not lose its visibility, we enlarge it to 2px
thick.
Basic vertical
We can easily create a vertical divider using the vr
class. However, we must remember to define its height using inline CSS:
Text
Text
Blurry horizontal
By adding the hr-blurry
class, we can make the divider blur at the edges. These types of dividers are often used for decorative purposes:
Blurry vertical
It works similarly with vertical dividers - just add the vr-blurry
class:
Text
Text 2
Blurry divider practical example
Below is an example, of how these blurry dividers are presented within a section: