?
avatar sanek4life
sanek4life
2 Feb 2020

What I see now:
изображение

What I suggest:
<img alt="1" src="/images/1.jpg" style="max-width: 100%; height: auto;" title="1">

Add this option to display on mobile devices:
style="max-width: 100%; height: auto;"

avatar sanek4life sanek4life - open - 2 Feb 2020
avatar joomla-cms-bot joomla-cms-bot - change - 2 Feb 2020
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 2 Feb 2020
avatar mbabker
mbabker - comment - 2 Feb 2020

Inline styles are not the right way to do this, and when using CSPs would cause errors in the browser.

avatar sanek4life
sanek4life - comment - 2 Feb 2020

@mbabker but this is a flaw, right? this is a display error for the image when adaptive display is required.

avatar mbabker
mbabker - comment - 2 Feb 2020

You can do the same in your template with CSS. Core should not be auto-generating markup with inline style rules (which are actually harder to override in CSS).

avatar brianteeman brianteeman - change - 2 Feb 2020
Status New Closed
Closed_Date 0000-00-00 00:00:00 2020-02-02 17:29:14
Closed_By brianteeman
avatar brianteeman brianteeman - close - 2 Feb 2020
avatar brianteeman
brianteeman - comment - 2 Feb 2020

Closing for the reasons stated above. Inline styles should not be used

avatar SharkyKZ
SharkyKZ - comment - 3 Feb 2020

It looks like this image is using JCaption. It actually fits the image to screen width but it does not recalculate on window resize.

avatar sanek4life
sanek4life - comment - 4 Feb 2020

@brianteeman @SharkyKZ I talked about same/similar problem 4 years ago - #10051

and this problem is still not resolved, and now I again saw this problem on a new test website.

avatar mbabker
mbabker - comment - 4 Feb 2020

Inline CSS is still the incorrect fix. The proper fix is to add the appropriate CSS to your template.

avatar sanek4life
sanek4life - comment - 4 Feb 2020

Inline CSS is still the incorrect fix. The proper fix is to add the appropriate CSS to your template.

This is the standard template Protostar that everyone has in Joomla 3. It turns out that this is a problem of Joomla?

avatar mbabker
mbabker - comment - 4 Feb 2020

As was pointed out on your issue 4 years ago, the appropriate CSS is already included in the template, and as you yourself pointed out because of changes in browsers you were experiencing the issue on an older browser but not a more recent version.

Either way the change you are suggesting is just wrong, end of discussion. If you can demonstrate an actual bug in Joomla then submit a proper bug report with more details than a random screenshot that someone could actually troubleshoot.

Add a Comment

Login with GitHub to post a comment