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

mod rewrite - Using "?" when rewriting the URL -

Admob integration with pygame in android -

.htaccess: Transfer name to index.php if not directory public -