Author Topic: [Tip/Trick]  Automatically re-size images in posts!  (Read 4049 times)


0 Members and 1 Guest are viewing this topic.

October 03, 2015, 09:29:05 PM

Offline Brian

  • Administrator
  • Jr. Member
  • *
  • Posts: 49
  • Country: us
  • Karma: 0
    • View Profile
[Tip/Trick] Automatically re-size images in posts!
« on: October 03, 2015, 09:29:05 PM »

(Register to disable this ad!)
Here's a simple way to automatically re-size all the images in a post - add these lines to end of your theme's index.css file:

Code: [Select]
/* Auto resizing of images in posts and personal messages. */
/* Change sizing to suit your own preferences. */
.bbc_img{
   height: auto;
   width: auto;
/* This is just to keep images to a handy size, even on large screens. */
   max-height: 640px;
/* This prevents images breaking out of the post on small screens. */
   max-width: 95%;
}


/* Auto resizing of images in signatures. */
/* Change sizing to suit your own preferences. */
.signature .bbc_img {
   height: auto;
   width: auto;
   max-height: 150px;
   max-width: 95%;
}

You can change the max-width and max-height settings to suit your needs.
« Last Edit: October 03, 2015, 10:10:10 PM by Brian »

Tags: