techytee techytee - 3 months ago 7
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

This might help

.className{
    word-wrap: break-word;
    white-space: normal
}
Comments