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.
The forum of the forums
4 posters

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

    avatar
    Yous000
    Forumember


    Posts : 240
    Reputation : 4
    Language : English

    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
    Bingoo
    Bingoo
    Forumember


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

    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~
    avatar
    Yous000
    Forumember


    Posts : 240
    Reputation : 4
    Language : English

    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.
    Bingoo
    Bingoo
    Forumember


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

    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.
    c3vietk
    c3vietk
    Forumember


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

    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
    avatar
    Yous000
    Forumember


    Posts : 240
    Reputation : 4
    Language : English

    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.
    SLGray
    SLGray
    Administrator
    Administrator


    Male Posts : 51498
    Reputation : 3523
    Language : English
    Location : United States

    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.

      Current date/time is September 22nd 2024, 6:38 pm