MyBB Community Forums

Full Version: How to do this , auto resize image in responsive mobile view ?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
whenever i post a large size of an image it remains same size in the responsive version of that theme...

i want , if i post the image it will be original (remain unchanged) in desktop version and will automatically resize in mobile view in responsive version.

please help me someone.
You're not using the standard theme?
Usually the images are resized to fit the width.

Your Postbit Template should contain class "scaleimages", e.g:
<div class="post_body scaleimages" id="...">

CSS definition in global.css:
.scaleimages img {
max-width: 100%;
}
This will resize any image within a post.

[ETS]
https://www.gossipion.epizy.com/thread-2...html#pid18

see this is an example of what was i am saying....
Use media queries.
(2021-02-19, 11:16 AM)GodLess101 Wrote: [ -> ]Use media queries.
i don't understand... 

what is meadia queries... ?
(2021-02-19, 11:58 AM)PARADOXP Wrote: [ -> ]
(2021-02-19, 11:16 AM)GodLess101 Wrote: [ -> ]Use media queries.
i don't understand... 

what is meadia queries... ?

This will help you
https://www.w3schools.com/css/css_rwd_mediaqueries.asp
ohhh ! that's the thing...

thanks for helping....

i figured it out...