4 ms·
Tailwind helped me break that bad habit with ‘mx-‘ and ‘my-‘
by applecrazy 7y ago
Tailwind helped me break that bad habit with ‘mx-‘ and ‘my-‘
- oefrha 7y agoThere’s a component with awfully wide margins? No problem, -mx-?, -my-?.
- applecrazy 7y agoEvery element has 0 margin by default in Tailwind, meaning this is never a problem. The only other case where I can imagine an element being improperly spaced is when its parent’s padding is messed up.
- oefrha 7y agoWell, there’s no “component” by default in Tailwind. I was addressing the “component with margins” problem in the article.