# Center td.posters container

**URL:** <https://meta.discourse.org/t/center-td-posters-container/106428>\
**Category:** Product Support\
**Created:** [13 בינואר,‏ 2019,‏ 5:00pm UTC](https://meta.discourse.org/t/center-td-posters-container/106428 "2019-01-13T17:00:38Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![Canapin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/canapin/32/119591_2.png) [@Canapin](https://meta.discourse.org/u/Canapin)\
**Post date:** [25 בדצמבר,‏ 2021,‏ 11:19pm UTC](https://meta.discourse.org/t/center-td-posters-container/106428/5 "2021-12-25T23:19:16Z")

</div>

With a `display: flex` on the `<td>`, I’m not sure this is possible without adding a bit of HTML 🤔

If you remove the `display: flex` from `.td.posters`, it will vertically center the avatars, regardless of the row height.

However, the cell containing the avatars `.topic-list .posters.theme-avatar-medium`, which has a fixed width, is a bit too short (176px) and the last avatar will go to a new line. If you increase it to 187px, it seems to fit.

Then, the avatars won’t be exactly at the same height because the first one is larger, which can be solved by:

```css
.topic-list .posters>a:first-child {
    margin-top: -4px;
}

```

 ![image](https://global.discourse-cdn.com/meta/original/3X/5/d/5d0d5c7c1b8c580141655950d9c629bf4219c0da.png)

---

_[View the full topic](https://meta.discourse.org/t/center-td-posters-container/106428)._
