MyBB Community Forums

Full Version: Make images automatically resize
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Hi,

Like you can see on this link, when someone insert an image which is too big, it's not automatically resized. I'm talking about the picture of the Pokémon 3DS Wink
How can I make images automatically crop?
Many thanks in advance!

Greets,
Thibault
You could try the following plugin:
http://mods.mybb.com/view/fit-on-page
Mybb İmage Size No Plugin Mycode! http://community.mybb.com/thread-71394.html
Many thanks for your support!
I tried the plugin, didn't work.
Then I entered this code in Theme Style/global.css/advanced Mode, at the bottom:
#maximage 
{
max-width: 255px;
}
But didn't work, should I enter it someplace else?
(2013-09-04, 10:03 PM)icola007 Wrote: [ -> ]Hi,

Like you can see on this link, when someone insert an image which is too big, it's not automatically resized. I'm talking about the picture of the Pokémon 3DS Wink
How can I make images automatically crop?
Many thanks in advance!

Greets,
Thibault

Wait, do you want it to crop or resize? They are very different.
I want it to resize, so it's not going 'out' of the forum Smile

--EDIT--
last time, I didn't create a new MyCode. So now I did it, but it's still not working
No more ideas?
remove your earlier code and try below code in global.css
img {
max-width: 255px;
height: auto;
}

(however max-width can be of more size)
remember to hard refresh your browser (eg. press CTRL + F5) on a topic page after saving global.css
the foll. code should work....

img {
max-width: 100%;
}
The plugin "Fit on Page" works perfectly.

[Image: 49a2799ce0b94be829fa9b5374100325.png]

SS of how it looks on my forum.
Pages: 1 2