*

kriskoyk

  • *****
  • 293 posts
Re: Resize image
« Reply #15 on: March 09, 2021, 11:04:25 AM »
I corrected in style.css, as it is in the bender theme, ie this img {max-width: 100%? width: auto; height: auto} in this img {max-width: 100%; width: auto \ 9; height: auto} and everything works fine.

*

MB Themes

Re: Resize image
« Reply #16 on: March 09, 2021, 11:57:19 AM »
@kriskoyk
I do not see difference, not sure what \9 and ? means there..
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

kriskoyk

  • *****
  • 293 posts
Re: Resize image
« Reply #17 on: March 09, 2021, 12:40:06 PM »
I do not know what it means, it's  in the bender theme that's why I put it. It works well. Is there another solution?

Marked as best answer by frosticek on March 09, 2021, 02:37:50 PM
*

MB Themes

Re: Resize image
« Reply #18 on: March 09, 2021, 02:37:44 PM »
@kriskoyk
I would say that is invalid css code.
I would change:
Code: [Select]
img {max-width: 100%;width: auto;height: auto;}
into:
Code: [Select]
body:not(.page) img {max-width: 100%;width: auto;height: auto;}
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

kriskoyk

  • *****
  • 293 posts
Re: Resize image
« Reply #19 on: March 09, 2021, 07:26:51 PM »
I do not think the solution you propose is better. The other (img {max-width:100%;width:auto\9;height:auto;}) that exists on the other hand in the Bender issue is probably better.

*

MB Themes

Re: Resize image
« Reply #20 on: March 09, 2021, 08:03:47 PM »
@kriskoyk
width:auto\9 is invalid attribute for width, so if you believe to have error value that does nothing is better, than it's your choice.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots