Center Avatar in topic view - Milk v2

For support and discussion related to templates, themes, and imagesets in phpBB 3.2.
Post Reply
McMurphy
Registered User
Posts: 7
Joined: Thu Oct 18, 2018 1:14 am

Center Avatar in topic view - Milk v2

Post by McMurphy »

For some reason, the avatars display left aligned in the profilepost sidebar while all the the profile fields underneath it is centered (as it should be based on the theme's demo). I am using Milk V2, and here is an example to what I am referring: http://www.new.gunslingergaming.com/for ... ?f=10&t=32

Can someone help me out on getting the avatar to also be center aligned? I am not sure which file I need to edit to achieve it.

Thank you in advance for any help you can provide.
User avatar
KevC
Support Team Member
Support Team Member
Posts: 72329
Joined: Fri Jun 04, 2004 10:44 am
Location: Oxford, UK
Contact:

Re: Center Avatar in topic view - Milk v2

Post by KevC »

You should contact the author of that style on the site where you downloaded it.
-:|:- Support Request Template -:|:-
Image
"Step up to red alert. Sir, are you absolutely sure? It does mean changing the bulb"
McMurphy
Registered User
Posts: 7
Joined: Thu Oct 18, 2018 1:14 am

Re: Center Avatar in topic view - Milk v2

Post by McMurphy »

Thank you. I have notified them, and got a pretty lukewarm reply, so I may need to edit files on my own.
User avatar
Lumpy Burgertushie
Registered User
Posts: 69223
Joined: Mon May 02, 2005 3:11 am
Contact:

Re: Center Avatar in topic view - Milk v2

Post by Lumpy Burgertushie »

if you look at the demo of that style here:
http://preview.themeforest.net/item/mil ... w/16119149

you will see that the avatar is centered as well.

looks like maybe some change you made to the css may have moved it.

actually, the css in yours and the css in the demo are exactly the same so I am not sure what the problem is.

contact christian the creator of that style and ask him.


robert
Premium phpBB 3.3 Styles by PlanetStyles.net

I am pleased to announce that I have completed the first item on my bucket list. I have the bucket.
User avatar
DTMWC
Registered User
Posts: 379
Joined: Tue Jan 16, 2018 6:17 am

Re: Center Avatar in topic view - Milk v2

Post by DTMWC »

This seems to be missing from your content CSS file:

Code: Select all

.postprofile .avatar {
	display: block;
	max-width: 100%;
	text-align: center;
	margin: 0 auto;
}

You can fix it by just adding this to the bottom of the file:

Code: Select all

.postprofile .avatar {
	margin: 0 auto;
}

or on line 693:

Code: Select all

.postprofile .avatar img {
	display: block;
	height: auto !important;
	max-width: 100%;
}
Changing display: block to inline-block

(the advantage with the inline-block is that only the avatar will be a clickable link instead of the left and right side side of the avatars.
Boom.
McMurphy
Registered User
Posts: 7
Joined: Thu Oct 18, 2018 1:14 am

Re: Center Avatar in topic view - Milk v2

Post by McMurphy »

Thank you for the responses.

The issue is triggered if you are using Milk v2 and install the Youtube Gallery extension. On my 3.0x forum, that mod worked well, but I had to uninstall the 3.2 version to correct the left align issue when using the Milk V2 theme.
Post Reply

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