TinyPortal

Development => Support => Topic started by: kent[ka] on November 08, 2011, 12:08:40 AM

Title: Avatar Frame
Post by: kent[ka] on November 08, 2011, 12:08:40 AM
Why no matter what size is the avatar set to, or the default resize for uploaded avatars, in all the blocks/bars/apps (ShoutBox,Latest Topics,articles,etc etc..) it show a white frame around the avatars, like if there is no avatar that can fit the size.

Any idea of this? I don't like the fact it creates this white frame on all the avatars.. . And in posts view it display just fine, so it's only TP and not SMF.
Title: Re: Avatar Frame
Post by: IchBin on November 08, 2011, 03:28:14 PM
I don't see a white frame around any of the avatars. Are you seeing this in a certain browser or something? Can you posted a screen shot of the problem you see?
Title: Re: Avatar Frame
Post by: lurkalot on November 08, 2011, 06:10:53 PM
I can see it in IE8, Firefox, and Chrome.  There's a 1px padding around the avatars in the shoutbox..

I quite llike the white border myself. ;)
Title: Re: Avatar Frame
Post by: IchBin on November 08, 2011, 06:40:51 PM
Oh I was looking for something larger I guess.

That's from this section of CSS in the tp-style.css file:
/* avatar styles */
span.tpavatar
{
float: left;
margin-right: 1em;
border: solid 1px #aaa;
padding: 1px;
background: white;
display: block;
overflow: auto;
}
Title: Re: Avatar Frame
Post by: kent[ka] on November 09, 2011, 01:47:26 AM
Lol, i'm talking about my forums, not this ones. Avatars looks fine here.

If is that file "tp-style.css " i gotta tell my friend to change, thanks. :P

Link: http://www.BlizzForge.com
Title: Re: Avatar Frame
Post by: IchBin on November 09, 2011, 03:31:52 AM
Try messing with this in the TPShout.css file on your site.
.tp_shoutavatar .avy2 img {
width: 30px;
max-height: 100%;
margin: 0 6px 0 0;
float: left;
background: white;
border: solid 1px #AAA;
padding: 1px;
}