# Problema de layout ao clicar em @mention dentro de um cartão de usuário

**URL:** <https://meta.discourse.org/t/layout-issue-when-you-click-on-mention-within-a-user-card/82121>\
**Category:** UX\
**Tags:** user-card\
**Created:** [Março 3, 2018, 2:45pm UTC](https://meta.discourse.org/t/layout-issue-when-you-click-on-mention-within-a-user-card/82121 "2018-03-03T14:45:38Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![Johani](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/johani/32/176920_2.png) [@Johani](https://meta.discourse.org/u/Johani)\
**Post date:** [Março 3, 2018, 3:01pm UTC](https://meta.discourse.org/t/layout-issue-when-you-click-on-mention-within-a-user-card/82121/3 "2018-03-03T15:01:50Z")

</div>

I could be way off the mark here, so take this with a grain of salt 😁

Here’s what I see when I click on the mention in your user card on Chrome 64 Win 8.1

 ![usercard](https://global.discourse-cdn.com/meta/original/3X/7/c/7c7edba5652cedf75cf12cd5c9ad483fa2bed45a.png)

I think this occurs because the card is absolutely positioned but in the case of a mention **within** another user’s card the closest non-statically positioned element is `#main` and so it defaults to

`top: 0; left: 10px;`  
(inline style)

or top left corner relative to `#main`

and it’s under the `d-header` because `d-header` has a `z-index` value of `1000`

---

_[View the full topic](https://meta.discourse.org/t/layout-issue-when-you-click-on-mention-within-a-user-card/82121)._
