Skip to content

Latest commit

History

History
17 lines (15 loc) 路 317 Bytes

2022-01-26.md

File metadata and controls

17 lines (15 loc) 路 317 Bytes
publish_date tags
2022-01-26
github
css
  • github co-pilot taught me a stonker of css trick today:

Add ellipsis to truncate long text after x amount of lines:

  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;