How TO - Text Divider
Learn how to create a text divider with CSS.
Lorem Ipsum
OR
AND
Try it Yourself »
How To Create Responsive Text Dividers
Step 1) Add HTML:
Example
<div class="divider">Lorem Ipsum</div>
Step 2) Add CSS:
Example
.divider {
font-size: 30px;
display: flex;
align-items: center;
}
.divider::before, .divider::after {
flex: 1;
content: '';
padding: 3px;
background-color: red;
margin: 5px;
}
Try it Yourself »