Can you share a code example? I can't seem to reproduce that quickly here:
https://play.tailwindcss.com/NVaJdxhao6
Stack Overflow
stackoverflow.com › questions › 78787698 › tailwind-break-words-doesnt-exist-how-to-solve
Tailwind break-words doesnt exist, how to solve? - Stack Overflow
You can use break-all class to break the words. So, your updated anchor tag code would look like this: <a href="https://someurl.com/HoH9cZVi8CMdvxVUNjvOzceUPVQcVZvvkf8ZbCOVOco" target="_blank" rel="noreferrer" class="underline break-all" style="">https://someurl.com/HoH9cZVi8CMdvxVUNjvOzceUPVQcVZvvkf8ZbCOVOco</a> Additionally, you can reference all break options here: Tailwind Break
'break-words' does not wrap when wrapped in a flex container
The Tailwind 'break-words' option does not work as expected in every scenario. More on github.com
how do i make this wrap text?
You need to give your wrapper known width to know where to break words. I made you an example with and without grid. https://play.tailwindcss.com/Xdfb5j1C8h More on reddit.com
html - Tailwind css does not break long words - Stack Overflow
This text: Set yourself ... For solving this i used: break-words class that should solve my issue but it anyway does not work. Question: How to break the overflow text in my case? What class should i use? DEMO: https://play.tailwindcss.com/rBM8GxwwVo... More on stackoverflow.com
How to get css word-break: break-word
Looks like tailwind has utilities for word-break, but I don't see the value break-word, and I wasn't able to achieve this functionality using any of the listed options. Is there an easy way to enab... More on github.com
GitHub
github.com › tailwindlabs › tailwindcss › discussions › 2213
`break-words` class is great but not enough · tailwindlabs/tailwindcss · Discussion #2213
Because otherwise you have to add these styles manually to the markup wherever you use break-words. Beta Was this translation helpful? Give feedback. ... There was an error while loading. Please reload this page. Something went wrong. There was an error while loading. Please reload this page. ... It looks like overflow-wrap: anywhere that you suggested solves the issue but as you said, Safari doesn't support it. Are you planning to create a Tailwind class for overflow-wrap: anywhere?
Author tailwindlabs
GitHub
github.com › tailwindlabs › tailwindcss › issues › 11255
'break-words' does not wrap when wrapped in a flex container · Issue #11255 · tailwindlabs/tailwindcss
May 17, 2023 - The break-words option does not behave like the deprecated css option break-word (6th span) or its successor (4th and 5th span). I expected the 1st span to wrap just like the 3rd (difference is the w-full) Creating the example for this issue I figured out it is due to the flax wrap as seen in the 2nd span where its missing the flex` and behaves as expected. The 4th span uses the solution described on mdn and works where break-words doesn`t.
Published May 17, 2023
Author conpat
Tailwind
windframe.dev › tailwind › classes › tailwind-word-break
Tailwind Word Break - Text Wrapping & Overflow Classes
February 19, 2026 - Hover to break more aggressively. ... this to work out for anyone coocolcocooooolcocoolcooolcooolccolcolcoolcoolcoolcooolcooolcoolcoolcoolcool · Could be useful in chat apps or admin panels for inspecting full strings without breaking layout initially. Want something specific like word-break: keep-all;? Use arbitrary values: ... Use this only if you know what it’s doing — it avoids breaking between characters in languages like Japanese or Korean. Tailwind doesn’t ...
GitHub
github.com › tailwindlabs › tailwindcss › discussions › 17217
break-words not working as intended · tailwindlabs/tailwindcss · Discussion #17217
March 15, 2025 - I did not set a width for the container, so the viewport width is what causes the breaking. In tailwind there is no way to set word-break: break-word;.
Author tailwindlabs
Reddit
reddit.com › r/tailwindcss › how do i make this wrap text?
r/tailwindcss on Reddit: how do i make this wrap text?
August 24, 2021 -
[SOLVED]
i tried:
<div class="flow-text break-words">History : {{case.history}}</div>
<div class="flow-text break-words">Signs and symptoms : {{ case.signs_and_symptoms }} </div> Top answer 1 of 2
2
You need to give your wrapper known width to know where to break words. I made you an example with and without grid. https://play.tailwindcss.com/Xdfb5j1C8h
2 of 2
1
Looks like it's been solved already but basically "break-words" will create a new line between words (so on a space) and "break-all" will create a new line on any character (so it can be in the middle of a word). If your first word is longer than the width of the div then "break-words" still won't work. In your example your line is basically one long word. Using real data in a big enough div should be just fine you for using "break-words".
Top answer 1 of 2
4
You should also set overflow-hidden to prevent the div from getting wider than it's parent.
https://play.tailwindcss.com/pYP5d3B4q4
2 of 2
2
Add width to the element. Also don't forget to work with the grid-based widths
<script src="https://cdn.tailwindcss.com"></script>
<div id="toast-default" class="flex items-center p-4 w-full max-w-xs text-gray-500 bg-white rounded-lg shadow dark:text-gray-400 dark:bg-gray-800" role="alert">
<div class="inline-flex flex-shrink-0 justify-center items-center w-8 h-8 text-blue-500 bg-blue-100 rounded-lg dark:bg-blue-800 dark:text-blue-200">
<svg aria-hidden="true" class="w-5 h-5" fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" d="M12.395 2.553a1 1 0 00-1.45-.385c-.345.23-.614.558-.822.88-.214.33-.403.713-.57 1.116-.334.804-.614 1.768-.84 2.734a31.365 31.365 0 00-.613 3.58 2.64 2.64 0 01-.945-1.067c-.328-.68-.398-1.534-.398-2.654A1 1 0 005.05 6.05 6.981 6.981 0 003 11a7 7 0 1011.95-4.95c-.592-.591-.98-.985-1.348-1.467-.363-.476-.724-1.063-1.207-2.03zM12.12 15.12A3 3 0 017 13s.879.5 2.5.5c0-1 .5-4 1.25-4.5.5 1 .786 1.293 1.371 1.879A2.99 2.99 0 0113 13a2.99 2.99 0 01-.879 2.121z" clip-rule="evenodd"></path></svg>
<span class="sr-only">Fire icon</span>
</div>
<!-- ADD WIDTH TO THE ELEMENT -->
<div class="ml-3 text-sm font-normal w-9/12 break-words">
Set yourself freesdfjhskdhfkhsdfhkshdfkjhksdfksjdfhkjshdkf.</div>
<button type="button" class="ml-auto -mx-1.5 -my-1.5 bg-white text-gray-400 hover:text-gray-900 rounded-lg focus:ring-2 focus:ring-gray-300 p-1.5 hover:bg-gray-100 inline-flex h-8 w-8 dark:text-gray-500 dark:hover:text-white dark:bg-gray-800 dark:hover:bg-gray-700" data-dismiss-target="#toast-default" aria-label="Close">
<span class="sr-only">Close</span>
<svg aria-hidden="true" class="w-5 h-5" fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" d="M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z" clip-rule="evenodd"></path></svg>
</button>
</div>
Shuffle
shuffle.dev › tailwind › classes › text › break-words
Tailwind CSS class: break-words - Shuffle.dev
« All Tailwind CSS classes · <div class="h-32 w-64 bg-gray-200 m-2"> <span class="break-words">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque justopurusulputateipsumgetsuereacilisisberoroiet pulvinar felis. </span> </div> .break-words { overflow-wrap: break-word; } Click one of the examples listed below to open the Shuffle Visual Editor with the UI library that uses the selected component.
GeeksforGeeks
geeksforgeeks.org › css › tailwind-css-word-break
Tailwind CSS Word Break - GeeksforGeeks
July 23, 2025 - The line breaks in the text can occur in certain spaces, like when there is a space or a hyphen. ... <!DOCTYPE html> <html> <head> <link href= "https://unpkg.com/tailwindcss@1.9.6/dist/tailwind.min.css" rel="stylesheet"> </head> <body class="text-center mx-4 space-y-2"> <h1 class="text-green-600 text-5xl font-bold"> GeeksforGeeks </h1> <b>Tailwind CSS Word Break Class</b> <div class="mx-48 w-48 bg-green-200 rounded-lg"> <p class="p-4 break-normal"> GeeksGeeks: Acomputerscienceportalforgeeks </p> </div> </body> </html>
Kombai
kombai.com › tailwind › word-break
Tailwind CSS Word Break - Kombai Blog
Proper use of leading-* and tracking-* ensures that word-breaking do not negatively impact readability, resulting in an intuitive and user-friendly experience. Applying break-* utilities responsively is crucial for maintaining an optimal reading experience across devices. Tailwind's responsive prefixes (sm:, md:, lg:) allow word-breaking behavior to be adjusted dynamically based on screen size.
Tailwind CSS
tailwindcss.com › docs › overflow-wrap
overflow-wrap - Typography - Tailwind CSS
Use the wrap-normal utility to only allow line breaks at natural wrapping points, like spaces, hyphens, and punctuation: The longest word in any of the major English language dictionaries is pneumonoultramicroscopicsilicovolcanoconiosis, a word that refers to a lung disease contracted from the inhalation of very fine silica particles, specifically from a volcano; medically, it is the same as silicosis.
TutorialsPoint
tutorialspoint.com › tailwind_css › tailwind_css_word_break.htm
Tailwind CSS - Word Break
This example shows Tailwind CSS's break-normal class, which allows text to wrap normally within its container. It ensures that text breaks at spaces or allowed points, maintaining a natural flow without forcibly breaking long words.
GitHub
github.com › tailwindlabs › tailwindcss › issues › 835
word-break vs word-wrap · Issue #835 · tailwindlabs/tailwindcss
April 5, 2019 - https://next.tailwindcss.com/docs/word-break/#content The word-break utilities documentation says it applies word-break, but its actually applying the word-wrap property. I'm using v0.7.x Is th...
Author franciscolourenco