XenForo Automatic limitation of the height of the images in threads

  • Thread starter Thread starter Capturimage
  • Start date Start date
C

Capturimage

Guest
Hello, :)

I have a forum about photography and, if the images in threads are automaticaly resized when you reduce the width of the browser, this is not the same for the height (make sens). So we needed to limit the height of the images displayed.

Before Xenforo 2.3, I used this code in my extra_less :


Code:

Code:
/* limit the size of images in threads */

.message-body img
{
max-height: 1100px !important;
}

It doesn't work anymore and the aspect ratio of the images displayed in a thread is...

Read more

Continue reading...