max-width for images and videos?
max-width for images and videos?
Can the theme be tweaked so that it applies max-width: 100%; to images and videos in posts? This will cause the browser to scale them down so that they fit inside the post, rather than showing them at full size but clipping them. Images and videos that are smaller than the width of the post won't be affected. Thanks!
Re: max-width for images and videos?
I'm pretty sure it already does this, since I requested it like 1 year ago?
Re: max-width for images and videos?
I've seen plenty of images wider than my screen, so no, unless it only scales new images, in which case I'm not sure.
There are 10 types of people: those who get this joke and those who don't.
Re: max-width for images and videos?
This image is 4k but looks just fine, fits inside the post pretty reasonably, even though its almost twice my screen resolution

If you could elaborate on the specific problem i could take a look

If you could elaborate on the specific problem i could take a look
Re: max-width for images and videos?
Yep, that looks fine for me too. Just prior to this, the post I was looking at (the second image) had a picture that went outside the post. I really see no pattern in what does and 2what doesn't, though.
There are 10 types of people: those who get this joke and those who don't.
Re: max-width for images and videos?
Seems to depend on if you are using [img] tags to insert your picture or attachments.
Former moderator
Re: max-width for images and videos?
Everything on that page looks correct to me.Jap2.0 wrote:Yep, that looks fine for me too. Just prior to this, the post I was looking at (the second image) had a picture that went outside the post. I really see no pattern in what does and 2what doesn't, though.
Re: max-width for images and videos?
Perhaps I misremembered about images; it's been a while since I posted one.
However, videos need the same treatment; here's one I posted recently: viewtopic.php?f=194&t=46855&p=299916#p299916
However, videos need the same treatment; here's one I posted recently: viewtopic.php?f=194&t=46855&p=299916#p299916
Re: max-width for images and videos?
Hmm, I don't see the video at all (it's probably my firewall or something), but here is a picture of the pictures from my view (cropped together in paint, there are scrollbars on both axis.
- Attachments
-
- Picture.png (1.89 MiB) Viewed 4463 times
There are 10 types of people: those who get this joke and those who don't.
Re: max-width for images and videos?
Hmm, that image looks larger than the screen as well. I uploaded it as a .png attachment, if it helps any.
There are 10 types of people: those who get this joke and those who don't.
Re: max-width for images and videos?
Both original thread and your image work properly here. And developer mode shows max width set to 100% for image element.
I'm using latest Opera (Chromium) - browser differences maybe?
I'm using latest Opera (Chromium) - browser differences maybe?