treehouse : what would you like to learn today?
Web Design Web Development iOS Development

Css word-break but unbreak word

  • Hello Team, I am using html editor from a 3rd party and my requirement is to get rid of horizontal scrolling and perform text wrapping. i was able to do so by using "word-wrap: break-word" property of CSS. However, I would like to move the word to next line if the word is breaking. Any suggestions, how can I do that? P.S: div tag is not an option for me as the editor uses div tag

  • We really need to see the code in Codepen or a live link.

    I don't see how word-wrapping would affect horizontal scrolling.

  • white-space: normal;?

  • white-space: normal; does the trick but I found out I my text had non break spaces so that was giving me a challenge