Text Overflow

suggest change

text-overflow: ellipsis signals clipped inline overflow. A single-line pattern also needs constrained overflow and no wrapping:

.one-line-label {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

The ellipsis is visual; it does not provide access to the omitted text. Ensure the full value remains available when it is essential, for example in adjacent details or an accessible control.

Multiple Lines

The interoperable multi-line pattern still uses legacy-prefixed properties:

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

Despite their names, these declarations are implemented across modern browser engines for compatibility. The standards-track line-clamp property is still evolving, so test before substituting it in the project's supported browsers. Treat clamping as a presentation enhancement rather than a way to discard necessary content.

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents