Grow your CSS skills. Land your dream job.

Css word-break but unbreak word

  • # March 3, 2013 at 11:45 pm

    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

    # March 4, 2013 at 5:15 am

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

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

    # March 4, 2013 at 7:27 am

    `white-space: normal;`?

    # March 10, 2013 at 9:33 am

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

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".