MyBB Community Forums

Full Version: Images and videos not resizing on mobile
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Hello

I am posting this asking anyone to help with this. I have tested almost half the themes on here, only ones based on default work. Every other theme when I open on mobile images and video not resizing to fit.. They either cut off or cause issues. 

[Image: 4sDXqKG.png]
(2021-12-18, 11:13 AM)SvePu Wrote: [ -> ]Take a look => https://community.mybb.com/thread-217215...pid1302940

this is for videos what about images?
For images you could set another CSS rule, like:
.post_content img{
    max-width: 100%;
    height: auto;
}
(2021-12-18, 11:33 AM)SvePu Wrote: [ -> ]For images you could set another CSS rule, like:
.post_content img{
    max-width: 100%;
    height: auto;
}


I wonder why theme creators don't add that to their themes xD but where exactly to add that I am a n00b
I've checked the demo page of theme designer and the image resizing works fine.
(2021-12-18, 11:48 AM)SvePu Wrote: [ -> ]I've checked the demo page of theme designer and the image resizing works fine.


For some reason it doesn't for me.. I use [img] direct link to image [/img]
Do you have a public link to your forum where we can see the issue?
(2021-12-18, 11:57 AM)SvePu Wrote: [ -> ]Do you have a public link to your forum where we can see the issue?


Yep, just select XeroFunk from theme selector n try any thread on mobile... site is https://forum.xerolinux.xyz
The problem is the plugin CSS file "mybbfancybox.css"

Edit this theme file on advanced mode and add at end:
@media only screen and (max-width: 680px) {
  .scaleimages img {
      max-width: 100%;
  }
}
Pages: 1 2