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: 4
Joined: Thu Oct 18, 2018 1:14 am

Center Avatar in topic view - Milk v2

Post by McMurphy » Thu Oct 18, 2018 1:18 am

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: 68401
Joined: Fri Jun 04, 2004 10:44 am
Location: Oxford, UK
Contact:

Re: Center Avatar in topic view - Milk v2

Post by KevC » Thu Oct 18, 2018 8:00 am

You should contact the author of that style on the site where you downloaded it.
-:|:- Support Request Template -:|:-
Image
Cheap UK Hosting
"In the land of the blind the little green bloke with no pupils is king - init!"

McMurphy
Registered User
Posts: 4
Joined: Thu Oct 18, 2018 1:14 am

Re: Center Avatar in topic view - Milk v2

Post by McMurphy » Fri Oct 19, 2018 12:35 am

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: 65192
Joined: Mon May 02, 2005 3:11 am
Contact:

Re: Center Avatar in topic view - Milk v2

Post by Lumpy Burgertushie » Fri Oct 19, 2018 3:17 am

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
I am available for custom work on a donation basis. Please send me a PM with your needs.

Premium phpBB 3.2 Styles by PlanetStyles.net

OK, so what's the speed of dark?

User avatar
Dan Stylez
Registered User
Posts: 183
Joined: Tue Jan 16, 2018 6:17 am
Contact:

Re: Center Avatar in topic view - Milk v2

Post by Dan Stylez » Fri Oct 19, 2018 3:34 am

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.

McMurphy
Registered User
Posts: 4
Joined: Thu Oct 18, 2018 1:14 am

Re: Center Avatar in topic view - Milk v2

Post by McMurphy » Fri Oct 26, 2018 1:14 am

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”

Who is online

Users browsing this forum: No registered users and 3 guests