# Can we get rid of height/width auto in oneboxes?

**URL:** <https://meta.discourse.org/t/can-we-get-rid-of-height-width-auto-in-oneboxes/72579>\
**Category:** UX\
**Created:** [Octobre 23, 2017, 12:52 UTC](https://meta.discourse.org/t/can-we-get-rid-of-height-width-auto-in-oneboxes/72579 "2017-10-23T00:52:50Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![vinothkannans](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/vinothkannans/32/86465_2.png) [@vinothkannans](https://meta.discourse.org/u/vinothkannans)\
**Post date:** [Octobre 23, 2017, 4:20 UTC](https://meta.discourse.org/t/can-we-get-rid-of-height-width-auto-in-oneboxes/72579/4 "2017-10-23T04:20:48Z")

</div>

I guess we can get rid of this problem by removing below css lines

> <https://github.com/discourse/discourse/blob/main/app/assets/stylesheets/common/base/onebox.scss#L137-L138>

Here `width: auto;` is added to fix `xkcd` oneboxes. For that adding `max-height: 100% !important;` in below is enough I think.

> <https://github.com/discourse/discourse/blob/main/app/assets/stylesheets/common/base/onebox.scss#L370-L375>

---

_[View the full topic](https://meta.discourse.org/t/can-we-get-rid-of-height-width-auto-in-oneboxes/72579)._
