Free UI/UX design course
Learn how to create exceptional designs by reading my new tutorial.
Start learningDividers
Dividers are small but very useful elements when creating a UI. In this lesson we will learn how they work in MDB and how to create horizontal, vertical and blurry dividers.
At first glance, dividers may seem like insignificant details to you, but it is precisely such details that create the "something" in good design.
Default divider
We create the default divider using the <hr>
element:
As you can see, the default version is a 1px
thick line with a strong grey color.
As you remember from previous lessons, Material Minimal prefers more subtle elements. So instead of dark gray, 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.
We are applying this styles by adding hr class to <hr>
element:
Vertical divider
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 divider
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:
It works similarly with vertical dividers - just add the vr-blurry
class:
Text
Text
Using blurry dividers, you can create attractive compositions, such as the one below:
5000+
Components
490+
Design blocks
100+
Templates
28
Plugins
All right. Armed with new knowledge, let's get back to work on our portfolio!
Step 1 - add blurry dividers to each of the testimonial card
This will be a super simple step - add a blurry divider at the top of each tab. It will be there for decorative purposes only.
Project Manager at Spotify
Garry Lindman
Lorem ipsum dolor sit amet consectetur adipisicing elit. Facilis molestias quidem itaque earum tempora distinctio soluta ut, eius, impedit porro iure praesentium ratione possimus quos suscipit, ratione nostrum cum odit.


About author
Michal Szymanski
Co Founder at MDBootstrap / Listed in Forbes „30 under 30" / Open-source enthusiast / Dancer, nerd & book lover.
Author of hundreds of articles on programming, business, marketing and productivity. In the past, an educator working with troubled youth in orphanages and correctional facilities.