CSS – set ellipsis

CSS – set ellipsis

Set the writing method of single-line text ellipsis:

First set the wide fixed width: width: 300px; required

Set no newline: white-space:nowrap;

Set ellipsis: text-overflow: ellipsis;

Clip excess/overflow content: overflow: hidden;

Was this article helpful?

Related Articles

Leave A Comment?

You must be logged in to post a comment.