techytee techytee - 2 months ago 4
HTML Question

How to wrap text to fit the DIV length

I have some contents in a DIV that needs to get wrapped when the DIV width changes. I know that content gets wrapped accordingly but whenever the content has something like this "______________________________________________________________" without any space in the middle, the content jumps out of the DIV or DIV width changes to fit the above text. How can I fix this?


This might help

    word-wrap: break-word;
    white-space: normal