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 »

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 657 times
thank you
User avatar
janus_zonstraal
Registered User
Posts: 6418
Joined: Sat Aug 30, 2014 1:30 pm

Re: center profile in viewtopic & profileSideSwitcher

Post by janus_zonstraal »

Better ask it on the author of the extension.
Sorry! My English is bat ;) !!!
User avatar
PlanetStyles.net
Former Team Member
Posts: 4809
Joined: Wed Nov 04, 2009 11:16 pm
Location: Way up in the sky close to the stars
Name: Christian
Contact:

Re: center profile in viewtopic & profileSideSwitcher

Post by PlanetStyles.net »

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 »

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

Return to “Extension Writers Discussion”