The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

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

4 posters

Go down

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

Post by Yous000 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:
Making avatars re size to a set size if they are too big L96Ip

All help is highly appreciated.


Last edited by Yous000 on May 30th 2012, 3:22 am; edited 1 time in total
avatar
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 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
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 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.
avatar
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 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
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 May 30th 2012, 2:56 am

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

100px
c3vietk
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 May 30th 2012, 3:20 am

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

100px

Works fine, much thanks.

Solved.
avatar
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 May 30th 2012, 5:17 am

Topic Solved & Locked


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

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

Male Posts : 51555
Reputation : 3524
Language : English
Location : United States

https://forumsclub.com/gc/128-link-directory/

Back to top Go down

Back to top

- Similar topics

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