Divider lines
Divider line helps break down chunky content into different sections, it also helps to improve a web page's accessibility and readability.
We've created a whole set of dividers, you can choose any designs to style up your web pages.
Available classes
By default, divider lines will expand to 100% width of its parent container.
Divider style
Class name | Colour | Thickness | Width |
---|---|---|---|
.divider-solid | #be830e | 1px | 100% |
.divider-gold | #be830e | 3px | 100% |
.divider-black | #000000 | 3px | 100% |
.divider-white | #ffffff | 3px | 100% |
Width classes
You can adjust the width of the divider by adding width classes to the divider. You can use all pre-defined size classes ranging from 10% to 95% (with an increment of 5%), view more on the Width section. This class should be used only in conjunction with the divider class.
Class name | Width | Description |
---|---|---|
.w10 | 10% | The divider line will have a width of 10% of its parent container. |
.w15 | 15% | The divider line will have a width of 15% of its parent container. |
.w20 | 20% | The divider line will have a width of 20% of its parent container. |
.w25 | 25% | The divider line will have a width of 25% of its parent container. |
.w30 | 30% | The divider line will have a width of 30% of its parent container. |
.w35 | 35% | The divider line will have a width of 35% of its parent container. |
.w40 | 40% | The divider line will have a width of 40% of its parent container. |
.w45 | 45% | The divider line will have a width of 45% of its parent container. |
.w50 | 50% | The divider line will have a width of 50% of its parent container. |
.w55 | 55% | The divider line will have a width of 55% of its parent container. |
.w60 | 60% | The divider line will have a width of 60% of its parent container. |
.w65 | 65% | The divider line will have a width of 65% of its parent container. |
.w70 | 70% | The divider line will have a width of 70% of its parent container. |
.w75 | 75% | The divider line will have a width of 75% of its parent container. |
.w80 | 80% | The divider line will have a width of 80% of its parent container. |
.w85 | 85% | The divider line will have a width of 85% of its parent container. |
.w90 | 90% | The divider line will have a width of 90% of its parent container. |
.w95 | 95% | The divider line will have a width of 95% of its parent container. |
Divider position
By default, the divider lines are left-aligned. By using the following classes, you can also centre/right align your divider lines.
Class name | Position | Description |
---|---|---|
.center | center | This makes the divider center-aligned within its parent container. |
.right | right | This makes the divider right-aligned within its parent container. |
Customisation
Horizonal rule <hr/>
Solid divider (divider thickness: 1px)
<div class="divider-solid"></div>
To use dividers for the headings. Use the below class, By default, the heading divider is full width with a thickness of 3px.
Gold divider for the heading:
<div class="divider-gold"></div>
Black divider for the heading:
<div class="divider-black"></div>
White divider for the heading:
<div class="divider-white"></div>
You can adjust the width of the divider by adding width classes to the divider. You can use all pre-defined size classes ranging from 10% to 95% (with increment of 5%), view more on width section . This class should be used only in conjunction with the divider class.
w20
<div class="divider-gold w20"></div>
w30
<div class="divider-gold w30"></div>
w40
<div class="divider-gold w40"></div>
w50
<div class="divider-gold w50"></div>
w60
<div class="divider-gold w60"></div>
w70
<div class="divider-gold w70"></div>
w80
<div class="divider-gold w80"></div>
Similarly you can use w20, w30, w40, w50, w60, w70 and w80 for black, white heading dividers and the solid divider.
.divider-white
w20
<div class="divider-black w20"></div>
w30
<div class="divider-black w30"></div>
w40
<div class="divider-black w40"></div>
w50
<div class="divider-black w50"></div>
w60
<div class="divider-black w60"></div>
w70
<div class="divider-black w70"></div>
w80
<div class="divider-black w80"></div>
You can center divider with an addon class center
.
<div class="divider-gold center w20"></div>
<div class="divider-black center w20"></div>
<div class="divider-white center w20"></div>
You can right align the divider with an addon class right
.
<div class="divider-gold right w20"></div>
<div class="divider-black right w20"></div>
<div class="divider-white right w20"></div>
The divider line will expand to the full width of the container it is in.
Horizonal rule <hr/>
Solid divider (divider thickness: 1px)
<div class="divider-solid"></div>
Divider colors
To use dividers for the headings. Use the below class, By default the heading divider is full width with a thickness of 3px.
Gold divider for the heading:
<div class="divider-gold"></div>
Black divider for the heading:
<div class="divider-black"></div>
White divider for the heading:
<div class="divider-white"></div>
Divider Widths
You can adjust the width of the divider by adding width classes to the divider. You can use all pre-defined size classes ranging from 10% to 95% (with increment of 5%), view more on Width section . This class should be used only in conjunction with the divider class.
w20
<div class="divider-gold w20"></div>
w30
<div class="divider-gold w30"></div>
w40
<div class="divider-gold w40"></div>
w50
<div class="divider-gold w50"></div>
w60
<div class="divider-gold w60"></div>
w70
<div class="divider-gold w70"></div>
w80
<div class="divider-gold w80"></div>
Similarly you can use w20, w30, w40, w50, w60, w70 and w80 for black, white heading dividers and the solid divider
.divider-white
w20
<div class="divider-black w20"></div>
w30
<div class="divider-black w30"></div>
w40
<div class="divider-black w40"></div>
w50
<div class="divider-black w50"></div>
w60
<div class="divider-black w60"></div>
w70
<div class="divider-black w70"></div>
w80
<div class="divider-black w80"></div>
Divider Position
You can center divider with an addon class center
.
<div class="divider-gold center w20"></div>
<div class="divider-black center w20"></div>
<div class="divider-white center w20"></div>
You can right align the divider with an addon class right
.
<div class="divider-gold right w20"></div>
<div class="divider-black right w20"></div>
<div class="divider-white right w20"></div>