Missing: overflow-wrap: anywhere
#15457
reindert-vetter
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Feature Request: Improved Text Wrapping in Tailwind CSS for Tables
I am working on a table where columns need to be distributed evenly. In this example, I am using
line-clamp-2
for controlling text overflow.Currently, Tailwind's
break-all
utility is insufficient because it breaks words into individual letters. Instead, I need a more flexible solution.Issue with
break-all
Using

break-all
results in words being broken in an undesirable way, as shown below:Desired Behavior with
overflow-wrap: anywhere
The

style="overflow-wrap: anywhere"
property provides the perfect behavior, wrapping words intelligently without breaking individual letters:Example HTML
Below is the HTML for the table that demonstrates the situation:
Request
Add support for a utility class in Tailwind CSS, such as
overflow-wrap-anywhere
, to enable the use ofoverflow-wrap: anywhere
. This would allow developers to manage text wrapping effectively without relying on inline styles.Beta Was this translation helpful? Give feedback.
All reactions