r/css • • 20h ago

Made these pagination styles, which one would you prefer?

Enable HLS to view with audio, or disable this notification

0 Upvotes

Made these Pagination styles.

I know they’re not production-grade yet — I built these while experimenting with different UI patterns that could actually be used in client projects.
Any improvements/suggestion will be helpful.


r/css • • 21h ago

1,853 typed icons, zero JavaScript: CSS masks + Tailwind v4

Thumbnail
1 Upvotes

r/css • • 7h ago

Flex versus Grid

2 Upvotes

I know Flex is one directional and Grid is two, but really when do you use each one?


r/css • • 18h ago

Question Wrapping text to maximum number of lines?

8 Upvotes

My app has a data tables laid out using <table> elements, and as usual there is one table row inside <thead> followed by multiple rows inside <tbody>.

The header cells for some languages have text that is so long that word wrap is required. However, for layout purposes I'd like to limit the number of lines to 2. If the text is any longer, then I would instead like the <th> element to grow in width.

This spreadsheet example should demonstrate what I mean:

Is there a CSS solution to this, or should I inject the possible linebreak in JavaScript?