elementor4fun-logo
Last update: February 29, 2020

Nice and easy way to create a Text Divider

TEXT DIVIDER

Simple but very nice and easy way to make a text divider.
It's fully responsive and it only requires one Div and 2 pseudo-classes.
And it's all about the flex-grow CSS property.

Source: This great tip from CodyHouse

Step 1

Add a Section

Step 2

Add a heading element (or a text element) and change the settings :

width:100%;
display:flex;
align-items:center;

Step 3

Select the pseudo-class :before

Step 4

Change the background color and change the height you want:

And then, for the most important part, set the Flex Grow to 1

Step 5

Repeat the same step for the pseudo class :after

And then you will get a simple and a totally responsive Text Divider :

 

COOL STUFF MAN

You can just play with the settings, adding some margins, changing the flex-grow, the width, the background colors...

TEXT DIV
TEXT DIV
SOME
Efficiently administrate enterprise-wide paradigms and premier methodologies. Collaboratively promote adaptive relationships via one-to-one content. Objectively communicate competitive services rather than enterprise methodologies. Progressively implement alternative schemas vis-a-vis superior process improvements. Conveniently.
COOL
Authoritatively extend parallel collaboration and idea-sharing rather than multimedia based bandwidth. Monotonectally unleash collaborative collaboration and idea-sharing via superior e-services. Energistically.
TITLES
Progressively morph cross functional metrics with strategic e-commerce. Progressively brand long-term high-impact e-tailers and superior e-services. Collaboratively conceptualize bleeding-edge portals through cross-platform technology. Authoritatively visualize wireless technology through focused customer service. Collaboratively maximize superior ROI before one-to-one strategic theme areas.
closealign-justifychevron-downcaret-up