6/21/2023 0 Comments P tag text overflow ellipsisIt’s pretty easy to see when width is set to min-content. The difference is in how it affects the min-content size calculation of the element it’s on. Note that text overflow can only happen with block or inline-block level elements (the element needs to have a width in order to overflow). There’s also overflow-wrap: anywhere, which breaks words in the same manner. See the Pen overflow-wrap: break-word by Will Boyd ( on CodePen. It’ll first try to keep a word unbroken by moving it to the next line, but will then break the word if there’s still not enough room. Putting overflow-wrap: break-word on an element will allow text to break mid-word if needed. if i do not use float: left in the element, the text of the
0 Comments
Leave a Reply. |