# Limiter le nombre de caractères affichés dans le titre

**URL:** <https://meta.discourse.org/t/limit-the-number-of-characters-displayed-in-the-title/297623>\
**Category:** Development\
**Tags:** css\
**Created:** [Mars 2, 2024, 7:11 UTC](https://meta.discourse.org/t/limit-the-number-of-characters-displayed-in-the-title/297623 "2024-03-02T19:11:31Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![Arkshine](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/arkshine/32/298682_2.png) [@Arkshine](https://meta.discourse.org/u/Arkshine)\
**Post date:** [Mars 2, 2024, 8:01 UTC](https://meta.discourse.org/t/limit-the-number-of-characters-displayed-in-the-title/297623/5 "2024-03-02T20:01:12Z")

</div>

Vous pouvez essayer ce CSS. Ajustez la largeur comme vous le souhaitez.

```css
.topic-list-item {
    .link-top-line {
        max-width: 20em;

        display: block;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

```

---

_[View the full topic](https://meta.discourse.org/t/limit-the-number-of-characters-displayed-in-the-title/297623)._
