Replies: 5 comments 2 replies
-
Definitely want/need this. I just rolled it in custom addition today. I tried the grid approach, but the outcome wasn't nice for content that needs to flow together. Just need some break avoidance to stop content being split between the columns:- eg .avoid-cols-break {
break-inside: avoid-column;
} |
Beta Was this translation helpful? Give feedback.
-
Need this for an upcoming project as well. Column gaps and breaks also desired. |
Beta Was this translation helpful? Give feedback.
-
Yes please. something to create simple masonry layouts would be greatly appreciated - as if you haven't done enough already :) |
Beta Was this translation helpful? Give feedback.
-
+1 for this. Creating simple Masonry with CSS Columns would be great. Is there any progress on this? |
Beta Was this translation helpful? Give feedback.
-
CSS grid-column-gap property, In this example I am creating a four column track grid, the tracks have absolute sizes and in total are smaller than the area of the grid container. This time I have Definition and Usage The grid-column-gap property defines the size of the gap between the columns in a grid layout. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello –
First of all, thank you so much for building and sharing tailwind with the community. Can't tell you how much I appreciate it. I love that it's a long-term bet on CSS and agnostic to any framework I'm using.
Request
Add classnames for the
columns
CSS property and common column sizes.MDN link: https://developer.mozilla.org/en-US/docs/Web/CSS/columns
Aside from creating columns of text, can be super helpful for image galleries with a Masonry layout. E.g. https://codepen.io/zthall/pen/jObxyLX
Propose maybe using classnames following a similar pattern to the Grid Template Columns classes.
Drawbacks
Concerns might be:
.content-
prefix; but not perfect.Conclusion
Curious to hear the team's thoughts. If this seems like something the team would be interested in, I'd be open to trying my hand at a pull request.
Beta Was this translation helpful? Give feedback.
All reactions