
generators
CSS Gradient
The ultimate CSS gradient generator with visual preview and code export.
#gradient#color#background
Truncate multi-line text with a CSS-only ellipsis using -webkit-line-clamp. Set the number of lines, adjust font size and line height, and edit the preview text directly. The output includes all required declarations for cross-browser support.
Browser support
-webkit-line-clamp works in all modern browsers including Chrome, Firefox, Safari, and Edge.
Live preview — click to edit text
Showing 3 lines at 16px / 1.6 line-height. Clamp height ≈ 77px.
Drag the slider to choose how many lines to show before the text is cut off with an ellipsis.
Match the font size and line height to your actual design so the preview is accurate.
Click the preview area and type your real content to see exactly how truncation will look.
The output includes all four required properties: display, -webkit-box-orient, -webkit-line-clamp, and overflow.
From our directory of 30+ CSS tools.
Know a great CSS tool?
Submit it to the directory and help developers discover it.