CSS handling word wrap

linkaiyi
Follow

Handling word wrap with css

with line break

.hyphenate {
    overflow-wrap: break-word;
    word-wrap: break-word;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    -moz-hyphens: auto;
    hyphens: auto;
}

hide extra words

.ellipsis {
    overflow:hidden; 
    white-space: nowrap;
    text-overflow: ellipsis;
}
Object has 0 attachments

Was this article helpful?

This article is viewed 17 times!

0 Comments

Leave a Comment

Support