Last active
December 14, 2022 16:24
-
-
Save mrmolaei/f0f334addad0200894e658b5be82aafb to your computer and use it in GitHub Desktop.
How to break every word in a new line in CSS
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.break-words { | |
width: min-intrinsic; | |
width: -moz-min-content; | |
width: min-content; | |
display: table-caption; | |
word-break: initial; | |
} | |
/* | |
Lorem ipsum dolor sit amet. | |
Lorem | |
ipsum | |
dolor | |
sit | |
amet. | |
*/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment