techytee techytee - 1 year ago 123
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?

Answer Source

This might help

    word-wrap: break-word;
    white-space: normal
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download