Image shrink

Post your own Mods, Snippets,
Tutorials here. Share what you got
Forum rules
User contributions are the users own "Stuff"
They are not supported by the BBCode Staff and is used at own risk

Image shrink

Post by KukY13 »

Has something like this ever happened to you:
Image
That a image you post is too wide and it gets cut off?

Well, this single line edit will prevent it!

Open common.css:
Find:

Code: Select all

img {
Add after:

Code: Select all

	max-width: 100%;
*Should work with all styles*

Now, any image that is too wide will be shrinked to fit in, and small enough images will retain their original size:
Image

Enjoy!

Re: Image shrink

Post by heredia21 »

Thank you!

Re: Image shrink

Post by Pete »

Geez... so simple and very useful. Thanks for sharring!

Re: Image shrink

Post by kevinviet »

Thanks for share KukY13 :)

Re: Image shrink

Post by Ephemeraboy »

totally useful
thanks

Re: Image shrink

Post by testas123 »

so if image is too wide, it will shrink and if i want to see full size, i click on image and it will pop up in a new window? Yes?

Am i doing it right? :lol:

Re: Image shrink

Post by KukY13 »

testas123 » 28 Aug 2010, 15:59 wrote:so if image is too wide, it will shrink and if i want to see full size, i click on image and it will pop up in a new window? Yes?

Am i doing it right? :lol:
No, this will just shrink the image if it is too wide.
If you want to see it in full size on click, try this: viewtopic.php?f=25&t=1098