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
Daryl
Daryl12mo ago
Tailwind is just CSS. Have you tried to replicate this in plain CSS?
Somnath Golui
Somnath Golui12mo ago
Yes. But when I write something with "before:" it does not take effect.
Somnath Golui
Somnath Golui12mo ago
width and height not taking effect. you can see that here
Daryl
Daryl12mo ago
From the docs: https://developer.mozilla.org/en-US/docs/Web/CSS/::before:
[...]. It is inline by default.
[...]. It is inline by default.
You need to add display: block or display: inline-block to your element. In Tailwind it would be: block or inline-block