You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
use the word-break property
For chrome: word-break: break-word is sufficient, but firefox requires word-break: break-all - which has the unwanted effect of breaking words in the middle.
Long words don't break to the next line where template column widths are defined with fr units
Codepen #1: (word-wrap / overflow-wrap)
Codepen #2: (hyphens)
Workarounds:
grid-template-columns: minmax(0, 1fr); instead of
grid-template-columns: 1fr;
For chrome:
word-break: break-word
is sufficient, but firefox requiresword-break: break-all
- which has the unwanted effect of breaking words in the middle.For reference, see: https://stackoverflow.com/questions/51253050/css-grid-grows-over-100-width-with-fr-but-not-with-minmax
The text was updated successfully, but these errors were encountered: