Skip to content

space-x-* and flex-wrap: they don't love each other #1975

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
frederikhors opened this issue Jun 26, 2020 · 2 comments
Closed

space-x-* and flex-wrap: they don't love each other #1975

frederikhors opened this issue Jun 26, 2020 · 2 comments

Comments

@frederikhors
Copy link
Contributor

frederikhors commented Jun 26, 2020

I'm opening this because

I want to try out the new space-x-* class to prevent using the margin or padding technique.
I also want to use the flex-wrap class to prevent columns going outside.

Sadly the result is not as I expected.

Example: https://codepen.io/buismaarten/pen/PoPRqdJ

Is there a way we can address this?


Related:

@adamwathan
Copy link
Member

Not solvable unfortunately, just a known limitation. Real solution will be when flexbox has full browser support for the gap property.

Previous discussion:

#1584 (comment)

@yannxaver
Copy link

After reading this issue, I looked up flexbox gap on caniuse and it seems like browser support is at 95% now. https://caniuse.com/flexbox-gap So anyone reading this who doesn't target Internet Explorer 11, should be good to go and can use gap-x-* instead.

workashutosh pushed a commit to workashutosh/tailwindcss that referenced this issue Apr 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants