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.

Off-site Avatars do not resize.

View previous topic View next topic Go down

Solved Off-site Avatars do not resize.

Post by Alexander Moore on July 29th 2012, 5:57 am

I'm having a problem where off-site avatars don't resize and cause problems when they're too big. Is there a code I can use to fix this?


Last edited by Alexander Moore on July 29th 2012, 11:13 am; edited 1 time in total

Alexander Moore
Forumember

Male Posts : 210
Reputation : 2
Language : English (USA), Mandarin Chinese || HTML, CSS, Limited JavaScript.
Location : Suzhou, China

Back to top Go down

Solved Re: Off-site Avatars do not resize.

Post by Sanket on July 29th 2012, 7:13 am

Add this to your css & check.
Code:
.postprofile dl dt a img {
    max-width: 50px;
}


Last edited by Sanket on July 29th 2012, 9:39 am; edited 1 time in total

Sanket
ForumGuru

Male Posts : 48766
Reputation : 2819
Language : English
Location : Mumbai

http://webartzforum.com

Back to top Go down

Solved Re: Off-site Avatars do not resize.

Post by ankillien on July 29th 2012, 7:51 am

@Sanket wrote:Add this to your css & check.
Code:
.postprofile dl dt a img {
    width: 50px;
}

Please use max-width instead of width, or it will resize all avatars to 50px.

ankillien
Energetic

Posts : 5198
Reputation : 129
Language : English, XHTML, CSS, JS, PHP, SQL

http://www.webartzforum.com/

Back to top Go down

Solved Re: Off-site Avatars do not resize.

Post by Sanket on July 29th 2012, 9:39 am

@ankillien wrote:
@Sanket wrote:Add this to your css & check.
Code:
.postprofile dl dt a img {
    width: 50px;
}

Please use max-width instead of width, or it will resize all avatars to 50px.
Thats correct, i will edit my post.

Sanket
ForumGuru

Male Posts : 48766
Reputation : 2819
Language : English
Location : Mumbai

http://webartzforum.com

Back to top Go down

Solved Re: Off-site Avatars do not resize.

Post by Alexander Moore on July 29th 2012, 9:40 am

Thank you very much. Now the problem only occurs in two places :

1. Forum widgets.
2. In the user profile.

Could I have the codes for those too? Sorry for being such a newb, seriously.

Alexander Moore
Forumember

Male Posts : 210
Reputation : 2
Language : English (USA), Mandarin Chinese || HTML, CSS, Limited JavaScript.
Location : Suzhou, China

Back to top Go down

Solved Re: Off-site Avatars do not resize.

Post by ankillien on July 29th 2012, 9:49 am

1) This code for widget profile...

Code:
.mod-login-avatar img {
max-width: 50px;
}

2) For provide view page...

Code:
#profile-advanced-right img:first-child {
max-width: 50px;
}

ankillien
Energetic

Posts : 5198
Reputation : 129
Language : English, XHTML, CSS, JS, PHP, SQL

http://www.webartzforum.com/

Back to top Go down

Solved Re: Off-site Avatars do not resize.

Post by Alexander Moore on July 29th 2012, 10:47 am

Thank you very much.

Hey, this might be useful to me - Is there a place where all the classnames are listed / explained?

Might help me so I don't have to keep asking to find the class I need.

Edit : Also, maybe you can answer my question on how to move the reputation button.

Alexander Moore
Forumember

Male Posts : 210
Reputation : 2
Language : English (USA), Mandarin Chinese || HTML, CSS, Limited JavaScript.
Location : Suzhou, China

Back to top Go down

Solved Re: Off-site Avatars do not resize.

Post by ankillien on July 29th 2012, 11:02 am

There is no place where you'll find all the classes listed and explained. The more you understand HTML and CSS, the easier it will become for you to find the classes/selectors.

If this topic is solved, please mark it as solved.

ankillien
Energetic

Posts : 5198
Reputation : 129
Language : English, XHTML, CSS, JS, PHP, SQL

http://www.webartzforum.com/

Back to top Go down

Solved Re: Off-site Avatars do not resize.

Post by Alexander Moore on July 29th 2012, 11:12 am

Thank you very much. Thanked, marked, rep added.

Alexander Moore
Forumember

Male Posts : 210
Reputation : 2
Language : English (USA), Mandarin Chinese || HTML, CSS, Limited JavaScript.
Location : Suzhou, China

Back to top Go down

Solved Re: Off-site Avatars do not resize.

Post by ankillien on July 29th 2012, 12:04 pm

Topic Solved & Locked

ankillien
Energetic

Posts : 5198
Reputation : 129
Language : English, XHTML, CSS, JS, PHP, SQL

http://www.webartzforum.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