1 year ago

#263147

test-img

Lalit Jindal

Forcing a word to wrap

How can I make the word "Hameln" take on a new line instead of breaking?

I've tried experimenting with overflow-wrap, word-break, & white-space but either the word breaks or it overflows beyond the container. It never talked a new line between "31789" and "Hameln".

<span class="standort-adresse-strasse"> Grabbestraße&nbsp;23&nbsp;|&nbsp;31789&nbsp;Hameln </span>

Screenshots:

enter image description here enter image description here

html

css

word-break

0 Answers

Your Answer

Accepted video resources