# Inconsistent margin for solved user summary

**URL:** https://meta.discourse.org/t/inconsistent-margin-for-solved-user-summary/62206
**Category:** Bug
**Tags:** solved
**Created:** [May 6, 2017, 3:18am UTC](https://meta.discourse.org/t/inconsistent-margin-for-solved-user-summary/62206 "2017-05-06T03:18:20Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![jomaxro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jomaxro/32/126216_2.png) [@jomaxro](https://meta.discourse.org/u/jomaxro)
#### Post date: [May 6, 2017, 3:18am UTC](https://meta.discourse.org/t/inconsistent-margin-for-solved-user-summary/62206/1 "2017-05-06T03:18:20Z")

</div>

The “X solutions” stat added to the user summary page is not a `<li>` like the other status, but a `<span>` with a `<li>` inside. Because of this, the likes received button is `:last-of-type` and has a CSS property of `margin: 0`. With the default theme, this isn’t noticeable, but when customizing the stats with box shadow the margin difference is quite clear.

 ![](https://global.discourse-cdn.com/meta/original/3X/e/8/e85cc4e6bf1e1e08407a976fb1ca1ca5061e9849.png)

---

<div class="post-metadata">

### Author: ![dax](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dax/32/244677_2.png) [@dax](https://meta.discourse.org/u/dax)
#### Post date: [May 6, 2017, 1:01pm UTC](https://meta.discourse.org/t/inconsistent-margin-for-solved-user-summary/62206/2 "2017-05-06T13:01:32Z")

</div>

The same thing happens for the button Solved in the activity profile, not for the margin in particular but for the custom style in general. Solved is a `span`, the other buttons are only `li`

 ![wzYHmdP](https://global.discourse-cdn.com/meta/original/4X/1/b/5/1b5117da958762f8c15682b01f70f864700b3d2c.png)  
(thanks @jomaxro to remind me this particular with your thread)

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [May 8, 2017, 2:31pm UTC](https://meta.discourse.org/t/inconsistent-margin-for-solved-user-summary/62206/3 "2017-05-08T14:31:37Z")

</div>

@eviltrout and I have a plan to fix this, but its a pretty tedious change.

This is essentially a dupe of:

> [@Plugin-outlet incorrectly handles multiple plugins at the same outlet](https://meta.discourse.org/t/plugin-outlet-incorrectly-handles-multiple-plugins-at-the-same-outlet/32206):
>
> Wrong code is: Must be Ember.ContainerView.extend({tagName: ''}) instead of Ember.ContainerView. The current wrong code breaks HTML markup in cases where HTML syntax does not allow wrapper DIV tag. An example is admin-menu plugin outlet: If there are multiple admin-menu connectors then Discourse wrongly renders them as: \<ul\> \<!-- standard menu items: --\> \<li\>\</li\> \<li\>\</li\> \<!-- admin-menu connectors: --\> \<div\> \<li\>\</li\> \<li\>\</li\> \</div\> \</ul\>
