---
title: "Discussion on \"How to truncate multi-line string with Pure CSS\" | Hashnode"
description: "Discussion on \"How to truncate multi-line string with Pure CSS\". It is easy to truncate a single-line text.\n    white-space: nowrap;\n    overflow: hidden;\n    text-overflow: ellipsis;\nMulti-line Tuncation\nHowever, what if you want to truncate after some lines? The CSS -webkit-line-clamp property comes in handy. It..."
url: "https://hashnode.com/posts/how-to-truncate-multi-line-string-with-pure-css/5f807ee65a344e164888049b"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [How to truncate multi-line string with Pure CSS](https://temitope.hashnode.dev/how-to-truncate-multi-line-string-with-pure-css?utm_source=hashnode&utm_medium=feed)

It is easy to truncate a single-line text. white-space: nowrap; overflow: hidden; text-overflow: ellipsis; Multi-line Tuncation However, what if you want to truncate after some lines? The CSS -webkit-line-clamp property comes in handy. It...

Oct 9, 2020 · 1 min read · temitope.hashnode.dev  
Updated Oct 14, 2020  
Read the article

-   [#css](https://hashnode.com/tag/css)
-   [#html5](https://hashnode.com/tag/html5)
-   [#100daysofcode](https://hashnode.com/tag/100daysofcode)

## Written by

[Temitope Ayodele](https://hashnode.com/@Temitope)

@Temitope · Lagos, Nigeria

  
[View profile](https://hashnode.com/@Temitope)

Frontend developer

I am a Frontend Developer (MERN stack). I am a web-accessibility and open-source advocate. I am a great team-player who has worked with awesome teams to build great products. I am self-taught with rich experience on React and Vue.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
