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.
Get Involved
Locked
Bruce Banner
Registered User
Posts: 557
Joined: Thu Sep 25, 2014 10:36 am

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

Post by Bruce Banner » Sat Nov 01, 2014 2:12 am

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 » Mon Nov 03, 2014 9:23 am

Try this:

Code: Select all

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

.profile-avatar img {
    max-width: 100%;
    height: auto;
}

Bruce Banner
Registered User
Posts: 557
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 » Tue Nov 04, 2014 5:58 am

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: 557
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 » Tue Nov 04, 2014 8:33 pm

Bump.

Bruce Banner
Registered User
Posts: 557
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 » Wed Nov 05, 2014 2:24 pm

Bump.

Bruce Banner
Registered User
Posts: 557
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 » Thu Nov 06, 2014 4:59 pm

Bump.

Bruce Banner
Registered User
Posts: 557
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 » Sat May 20, 2017 6:26 pm

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”

Who is online

Users browsing this forum: No registered users and 2 guests