Is there a way to get avatars to resize on profile pages?

For support and discussion related to templates, themes, and imagesets in phpBB 3.1.
Scam Warning
Locked
Bruce Banner
Registered User
Posts: 1343
Joined: Thu Sep 25, 2014 10:36 am

Is there a way to get avatars to resize on profile pages?

Post by Bruce Banner »

Even though avatars automatically resize in threads, they appear full-size on profile pages. If the avatar's quite large, the page appears quite messy. Is there a way to get them to auto-resize the same way they do in threads? Also when viewing them from the UCP?
User avatar
PayBas
Former Team Member
Posts: 930
Joined: Thu May 25, 2006 12:37 am

Re: Is there a way to get avatars to resize on profile pages?

Post by PayBas »

Try this:

Code: Select all

.profile-avatar {
   max-width: 200px;
}

.profile-avatar img {
    max-width: 100%;
    height: auto;
}
Bruce Banner
Registered User
Posts: 1343
Joined: Thu Sep 25, 2014 10:36 am

Re: Is there a way to get avatars to resize on profile pages?

Post by Bruce Banner »

PayBas wrote:Try this:

Code: Select all

.profile-avatar {
   max-width: 200px;
}

.profile-avatar img {
    max-width: 100%;
    height: auto;
}
Thanks! That works fine for the profile page. Is there a way to also get the avatar to resize when viewing it in the edit avatar section of the ucp?
Bruce Banner
Registered User
Posts: 1343
Joined: Thu Sep 25, 2014 10:36 am

Re: Is there a way to get avatars to resize on profile pages?

Post by Bruce Banner »

Bump.
Bruce Banner
Registered User
Posts: 1343
Joined: Thu Sep 25, 2014 10:36 am

Re: Is there a way to get avatars to resize on profile pages?

Post by Bruce Banner »

Bump.
Bruce Banner
Registered User
Posts: 1343
Joined: Thu Sep 25, 2014 10:36 am

Re: Is there a way to get avatars to resize on profile pages?

Post by Bruce Banner »

Bump.
Bruce Banner
Registered User
Posts: 1343
Joined: Thu Sep 25, 2014 10:36 am

Re: Is there a way to get avatars to resize on profile pages?

Post by Bruce Banner »

Can anyone remind me which file PayBas is referring to that I need to change?

EDIT: Never mind. Figured it out. It's styles/prosilver/theme/common.css
Locked

Return to “[3.1.x] Styles Support & Discussion”