Image shrink

Post your own Mods, Snippets, Tutorials here. Share what you got
There is no support here! Only Read Access!
Forum rules
User contributions are the users own "Stuff"
They are not supported by the BBCode Staff and is used at own risk
Locked
KukY13
BBCoder III
BBCoder III
Posts: 96
Joined: 26 Jun 2010, 16:23
Contact:

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!
Image
heredia21
BBCoder IV
BBCoder IV
Posts: 179
Joined: 07 Apr 2010, 20:42
Contact:

Re: Image shrink

Post by heredia21 »

Thank you!
#1 BlackBerry News site - BlackBerry Empire. Come visit us!
User avatar
Pete
BBCoder II
BBCoder II
Posts: 25
Joined: 24 Mar 2010, 21:39

Re: Image shrink

Post by Pete »

Geez... so simple and very useful. Thanks for sharring!
User avatar
kevinviet
BBCoder III
BBCoder III
Posts: 123
Joined: 06 Mar 2010, 04:52

Re: Image shrink

Post by kevinviet »

Thanks for share KukY13 :)
User avatar
Ephemeraboy
BBCoder II
BBCoder II
Posts: 37
Joined: 09 Mar 2010, 04:03
Location: bonatius.com
Contact:

Re: Image shrink

Post by Ephemeraboy »

totally useful
thanks
My Personal Blog
http://www.bonatius.com
testas123
BBCoder II
BBCoder II
Posts: 13
Joined: 11 Jun 2010, 18:09

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:
KukY13
BBCoder III
BBCoder III
Posts: 96
Joined: 26 Jun 2010, 16:23
Contact:

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
Image
Locked