Replies: 2 comments
-
I had the same issue and sadly there is no
|
Beta Was this translation helpful? Give feedback.
0 replies
-
in your plugin(({ addUtilities }) => {
addUtilities({
".lx-center": { left: "50%", transform: "translateX(-50%)" },
".ly-center": { top: "50%", transform: "translateY(-50%)" },
".lxy-center": {
top: "50%",
left: "50%",
transform: "translate(-50%, -50%)",
},
});
}), and use classes, |
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.
-
As the title suggests, I propose the addition of the absolute-center utility class for centrally positioning absolute elements. Countless times have I manually written this, indicating its common necessity
absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2
Beta Was this translation helpful? Give feedback.
All reactions