Replies: 2 comments 2 replies
-
Consider providing a git repo that reproduces the unexpected behavior. Though I've often seen this behavior happen because of some rule in the CSS like: * {
margin: 0;
…
} |
Beta Was this translation helpful? Give feedback.
1 reply
-
I have same issue, but it doesn't helped |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm using the new Tailwind CSS 4 setup with Vite, which doesn't require a tailwind.config.js file. However, I'm noticing that margin classes (m-4, mt-2, etc.) are not applying unless I use !m-4. Other Tailwind classes, like padding and background colors, work fine. I've already removed margin: 0; from my global styles and ensured Tailwind's imports are correct. Could there be something in the new setup that's preventing margins from applying properly?
Beta Was this translation helpful? Give feedback.
All reactions