Pastor Rick
Head Administrator
Global user (premium)
Registered: 07-2005
Location: Texas Country
Posts: 292
Karma: 4 (+4/-0)

|
|
Reply | Quote
|
|
Taming Avatar Sizes
There are a couple of options to do this. The first is to go to your boards Misc Options and check the box to auto resize the avatar then you put the size in the boxes for the avatar height and width. This makes all the avatars the same size but can make some of them distorted.
The second way simply puts a limit on the height and width of the avatar, resizing if required and the distortion factor is greatly reduced (in other words it will look nicer for most avatars used).
To achieve this in your CSS put:
/* AVATAR SIZE RESTRICTIONS */
.ak_msg_post_table img { max-height:200px; height: expression(this.height > 200 ? 200: true); max-width:150px; width: expression(this.width > 150 ? 150: true); margin-bottom: 1em;}
Then in you boards misc options uncheck the "force avatar resizing" box
Obviously you can change the avatar size setting in the CSS to fit your own boards design... The numbers I used for the example seem to be ideal for most boards though.
(credit to LG for the coding solution)
|
|
8/18/2008, 6:00 am
|
Send Email to Pastor Rick
Send PM to Pastor Rick
MSN
Blog
|