-webkit-line-clamp: 2
and assign a class like two-line-ellipsis
to apply multiline ellipsis.To limit a paragraph to two lines with an ellipsis (three dots) at the end and a line height of 16px in Webflow, follow these steps:
white-space: nowrap
for multiline truncation, so you’ll need to work with CSS).Since Webflow doesn't natively support multiline text truncation with ellipsis, you'll need to add custom CSS:
Go to Page Settings of the page where the paragraph appears, or to the Project Settings > Custom Code section.
Add the following CSS inside the <style>
tag:
``
In Webflow Designer, give your paragraph element a class name of two-line-ellipsis
to apply this style.
To display a paragraph in Webflow truncated to two lines with an ellipsis, set a line height of 16px in the Style panel, then use custom CSS with -webkit-line-clamp: 2
to limit lines and show the ellipsis. Assign a class (like two-line-ellipsis
) to the paragraph and include the CSS via Embed or Custom Code settings.