v4: mx-auto not behaving like in v3 #13175
-
What version of Tailwind CSS are you using? v4 What build tool (or framework if it abstracts the build tool) are you using? Svelte 5 next 73, Sveltekit 2 What version of Node.js are you using? v20.10.0 What browser are you using? Microsoft Edge + Firefox What operating system are you using? Windows Describe your issue mx-auto in v3 had a more box sized approach while in v4 it does fullwidth (not even sure if its working). |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
.mx-auto {
margin-left: auto;
margin-right: auto;
} Could you confirm whether this is the case for you? If so, it could indicate a some other unexpected CSS behavior and for that, a minimal reproducible example could help please! |
Beta Was this translation helpful? Give feedback.
-
And this goes for all cases where i use mx-auto. I checked and mx-auto does currently nothing with the margin and just leaves it at 0 |
Beta Was this translation helpful? Give feedback.
Problem here is that there is no
container
class in v4 at the moment, not themx-auto
class. There's another open issue for it so we'll sort out a solution soon I'm sure!