flex-center
#10495
Replies: 1 comment
-
For Tailwind v4: @utility flex-center {
display: flex;
align-items: center;
justify-content: center;
} I always need to create this in my projects, so it would be awesome if it came built-in. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Why isn't flex-center a utility class in Tailwind already? It seems like a pretty logic thing to exist as it is very often used. Is there a reason this class should not exist? It would be super nice to have this as i find myself adding the flex justify-center items-center classes very often.
With flex-center i am referring to the following css code:
This could also be extended to have absolute-center
Beta Was this translation helpful? Give feedback.
All reactions