css - Make a long line of characters wrap in HTML -


this question has answer here:

users can enter text in particular form of mine , want display text in table format. users enter long lines without spaces. text forces table wide.

i can limit td element have max-width, text keeps flowing on other cells. can set overflow: hidden , text gets cut off: enter image description here

but need able read all. there way wrap long line of text in table if text doesn't have spaces?

try adding css file on element requires it:

word-wrap:break-word; 

here in action:

working example


Comments

Popular posts from this blog

css - Which browser returns the correct result for getBoundingClientRect of an SVG element? -

gcc - Calling fftR4() in c from assembly -

Function that returns a formatted array in VBA -