How to add three dots at the end of the topic name?

Hi helpful friends,

How to add three dots at the end of the topic name?

Full topic name : Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

I need to do : Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed…

I want it to work only on the home page.

The reason I want this is to keep the topic lengths the same on the homepage.

Thank you :pray:

2 Likes

Something like that:

.categories-and-latest .main-link {
    .top-row {
        max-width: 20em;
        display: block;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}
6 Likes

Thank you so much @Arkshine this worked

2 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.