CSS: Ellipsis at end of long string in element


Sun Aug 28 2022 12:28:38 GMT+0000 (UTC)

Saved by @marcopinero #css

.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.