# Truncate and clamp text
URL: https://wwadd.dev/moves/css/truncate-text

Single-line truncation needs `overflow`, `white-space`, and `text-overflow` together. Multi-line uses the widely supported `-webkit-line-clamp`.


```css
.truncate {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
```

## Related Moves
- [Grid essentials](https://wwadd.dev/moves/css/grid-essentials)

