center profile in viewtopic & profileSideSwitcher

Discussion forum for Extension Writers regarding Extension Development.
Post Reply
patrick1963
Registered User
Posts: 9
Joined: Mon Dec 11, 2017 5:42 pm

center profile in viewtopic & profileSideSwitcher

Post by patrick1963 » Sat Dec 16, 2017 8:20 pm

I install ext profileSideSwitcher I would like to center the post as can be seen in the picture
profil.PNG
profil.PNG (22.55 KiB) Viewed 570 times
thank you

janus_zonstraal
Registered User
Posts: 2667
Joined: Sat Aug 30, 2014 1:30 pm

Re: center profile in viewtopic & profileSideSwitcher

Post by janus_zonstraal » Sat Dec 16, 2017 11:10 pm

Better ask it on the author of the extension.
Sorry! My English is bat ;) !!!

User avatar
Christian 2.0
Former Team Member
Posts: 4443
Joined: Wed Nov 04, 2009 11:16 pm
Location: UK
Name: Christian
Contact:

Re: center profile in viewtopic & profileSideSwitcher

Post by Christian 2.0 » Sun Dec 17, 2017 11:39 am

Hello :)

In prosilver/theme/content.css

Find:

Code: Select all

/* Poster profile block
----------------------------------------*/
.postprofile {
	margin: 5px 0 10px 0;
	min-height: 80px;
	border: 1px solid transparent;
	border-width: 0 0 0 1px;
	width: 22%;
	float: right;
	display: inline;
}
Add:
text-align: center;

Then to center-align the avatar:

Find:

Code: Select all

.postprofile .avatar {
	display: block;
	float: left;
	max-width: 100%;
}
Replace with:

Code: Select all

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

patrick1963
Registered User
Posts: 9
Joined: Mon Dec 11, 2017 5:42 pm

Re: center profile in viewtopic & profileSideSwitcher

Post by patrick1963 » Wed Dec 20, 2017 10:43 pm

good evening Christian 2.0
his walk trés your code thank you

Post Reply

Return to “Extension Writers Discussion”

Who is online

Users browsing this forum: No registered users and 5 guests