Kevin Powell - CommunityKP-C
Kevin Powell - Community3y ago
25 replies
Kate

Whitespace when line-wrapping

I have an element that is forced to line-wrap due to width constraints, but this causes unwanted whitespace on the inner-right end of the content box. How do I ensure that there is no whitespace, regardless of text length? I cannot change the structuring of this, only CSS. Word-breaking and hyphenation, justified text and width: min-content cannot be used, either.

Link to codepen with structure: https://codepen.io/yayokb/pen/OJarRVe
Screenshot_2023-07-31_130235.png
Was this page helpful?