# How to center text on topic preview?

**URL:** <https://meta.discourse.org/t/how-to-center-text-on-topic-preview/110401>\
**Category:** Product Support\
**Created:** [01.Март.2019 00:01:01 UTC](https://meta.discourse.org/t/how-to-center-text-on-topic-preview/110401 "2019-03-01T00:01:01Z")\
**Posts on this page:** 1\
**Showing post:** 6

<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:** [02.Март.2019 13:34:03 UTC](https://meta.discourse.org/t/how-to-center-text-on-topic-preview/110401/6 "2019-03-02T13:34:03Z")

</div>

It’s a little more tricky.

I don’t know if it will work in all situations, but you can try and adjust the following:

For mobile only:

```CSS
.topic-list-item {
    td {
        display: flex;
        align-items: center;
        max-width: 100%;
        position: relative;
    }
    
    .topic-details {
        flex: 2;
        
        display: flex;
        flex-direction: column;
        min-height: initial !important;
        position: initial !important;
        overflow: visible;
        
        .pull-right {
            position: absolute;
            right: 0;
            top: 0.5em;
            bottom: 0;
        }
        
        .num.activity {
            bottom: 0.5em;
        }
    }
    
    .topic-actions {
        flex: 0 0 100%;
    }
}

```

 ![image](https://global.discourse-cdn.com/meta/original/3X/0/6/06f8f98433c8b3ee47d4bfa6a8a83e9037a8a6ff.png)

---

_[View the full topic](https://meta.discourse.org/t/how-to-center-text-on-topic-preview/110401)._
