How to do this with tailwind css?
I want this to line in both sides of "or" text. How to do this with tailwind css?
4 Replies
Tailwind is just CSS. Have you tried to replicate this in plain CSS?
Yes. But when I write something with "before:" it does not take effect.
width and height not taking effect. you can see that here
From the docs: https://developer.mozilla.org/en-US/docs/Web/CSS/::before:
You need to add
display: block
or display: inline-block
to your element.
In Tailwind it would be: block
or inline-block