The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

Making avatars re size to a set size if they are too big

View previous topic View next topic Go down

Solved Making avatars re size to a set size if they are too big

Post by Yous000 on May 30th 2012, 2:37 am

Currently if somebody implements an avatar that is too big it just goes all over the place rather than resizing. How could I make this work in either CSS or JavaScript.

This is what it is looking like now with a avatar that is too big:


All help is highly appreciated.


Last edited by Yous000 on May 30th 2012, 3:22 am; edited 1 time in total

Yous000
Forumember

Posts : 240
Reputation : 4
Language : English

Back to top Go down

Solved Re: Making avatars re size to a set size if they are too big

Post by Bingoo on May 30th 2012, 2:41 am

Hi,

Really, in my opinion, I would just re-size it or crop it. If that obviously doesn't work then find the same image but in a different size~

Bingoo
Forumember

Male Posts : 134
Reputation : 7
Language : English, Spanish

Back to top Go down

Solved Re: Making avatars re size to a set size if they are too big

Post by Yous000 on May 30th 2012, 2:43 am

@Bingoo wrote:Hi,

Really, in my opinion, I would just re-size it or crop it. If that obviously doesn't work then find the same image but in a different size~

But you can't expect everyone to re size their images. I would like it to auto re-size images that are too big.

Yous000
Forumember

Posts : 240
Reputation : 4
Language : English

Back to top Go down

Solved Re: Making avatars re size to a set size if they are too big

Post by Bingoo on May 30th 2012, 2:46 am

Hmm, I see your point, but I can't really help you since that has never happened to me or in my forum.

Bingoo
Forumember

Male Posts : 134
Reputation : 7
Language : English, Spanish

Back to top Go down

Solved Re: Making avatars re size to a set size if they are too big

Post by c3vietk on May 30th 2012, 2:56 am

add to css
Code:
.postprofile a img {max-width:100px}

100px

c3vietk
Forumember

Male Posts : 65
Reputation : 41
Language : Vietnamese, HTML, Javascript, C#, PHP
Location : Vietnam, HCMc

http://diendan.chinhphuc.info/

Back to top Go down

Solved Re: Making avatars re size to a set size if they are too big

Post by Yous000 on May 30th 2012, 3:20 am

@c3vietk wrote:add to css
Code:
.postprofile a img {max-width:100px}

100px

Works fine, much thanks.

Solved.

Yous000
Forumember

Posts : 240
Reputation : 4
Language : English

Back to top Go down

Solved Re: Making avatars re size to a set size if they are too big

Post by SLGray on May 30th 2012, 5:17 am

Topic Solved & Locked


When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.


SLGray
Administrator
Administrator

Male Posts : 35622
Reputation : 2372
Language : English
Location : United States

http://fmthemes.forumotion.com/

Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum