# Images in posts too wide when “max image width” is set

**URL:** <https://meta.discourse.org/t/images-in-posts-too-wide-when-max-image-width-is-set/126372>\
**Category:** Product Support\
**Created:** [August 21, 2019, 8:10am UTC](https://meta.discourse.org/t/images-in-posts-too-wide-when-max-image-width-is-set/126372 "2019-08-21T08:10:35Z")\
**Posts on this page:** 1\
**Showing post:** 13

<div class="post-metadata">

**Author:** ![tohaitrieu](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tohaitrieu/32/151338_2.png) [@tohaitrieu](https://meta.discourse.org/u/tohaitrieu)\
**Post date:** [August 22, 2019, 5:04pm UTC](https://meta.discourse.org/t/images-in-posts-too-wide-when-max-image-width-is-set/126372/13 "2019-08-22T17:04:57Z")

</div>

I tried to compare css from my site with discourse.

In my site,

```
#reply-control .d-editor-preview img:not(.thumbnail), .cooked img:not(.thumbnail) {
    max-width: 1200px;
    max-height: 628px;
}

```

html

`<img src="https://babyforex.net/uploads/default/original/1X/10670fd0bf4b34154ae4447feff1fc93f5eaed7e.jpeg" alt="h%C3%ACnh%20%E1%BA%A3nh" data-base62-sha1="2l6rNxc3PYiacNMqRTIM4GcaAjA" width="1200" height="526" class="d-lazyload">`

In discourse:

```
#reply-control .d-editor-preview img:not(.thumbnail), .cooked img:not(.thumbnail) {
    max-width: 690px;
    max-height: 500px;

```

html:

`<img src="https://global.discourse-cdn.com/meta/optimized/3X/e/9/e98710650be7c014168330f7c60d7081340c89cb_2_690x194.jpeg" alt="image" data-base62-sha1="xjSCGCdDwgRqb1OJkiAZNgbEQEr" width="690" height="194" class="d-lazyload" srcset="https://global.discourse-cdn.com/meta/optimized/3X/e/9/e98710650be7c014168330f7c60d7081340c89cb_2_690x194.jpeg, https://global.discourse-cdn.com/meta/optimized/3X/e/9/e98710650be7c014168330f7c60d7081340c89cb_2_1035x291.jpeg 1.5x, https://global.discourse-cdn.com/meta/optimized/3X/e/9/e98710650be7c014168330f7c60d7081340c89cb_2_1380x388.jpeg 2x">`

discourse alway is 690px

But my website is 1200 and images has been hidden.

---

_[View the full topic](https://meta.discourse.org/t/images-in-posts-too-wide-when-max-image-width-is-set/126372)._
