CSS: Ellipsis at end of string

.ellipsis { overflow: hidden; text-overflow: ellipsis; width: 100%; white-space: nowrap; }
Used for set ellipsis at end of string (...) when its size is wider than container width:

Ex:

|The king's name was Nebuchadn...|

This is a corrected version of snipped found in this social web.

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.