• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

XF 1.2 Postbit Centered?

denisx04

Active member
#1


Basically I hate the way its spread right now, I do have a CSS code that centers id manually from the xenforo 1.1 days that CSS code appears to have no effect in 1.2 and I just wanted to see if anyone knew how I could center all the info in there.
 

Adam Howard

Well-known member
#2
Quick and easy....

message_user_info

Wrap the whole thing with

PHP:
<div style="text-align:center">

</div>
This will center everything there
 

denisx04

Active member
#6
Really? It worked for me on the default style..... What style are you using?

Try this....

Extra.css

PHP:
.messageUserBlock .extraUserInfo {
text-align: center;
}
Thats the original code I had for 1.1 and that doesn't work at all on 1.2, has absolutely no effect. But this is the style I use http://xenique.com/forums/index.php?store-products/octane/

Sent Forsaken a PM and will see if he can do anything since its his style.
 

Adam Howard

Well-known member
#7
Thats the original code I had for 1.1 and that doesn't work at all on 1.2, has absolutely no effect. But this is the style I use http://xenique.com/forums/index.php?store-products/octane/

Sent Forsaken a PM and will see if he can do anything since its his style.
You maybe better off doing so. As that is after all a custom style (outside the support for the support forums)

But just wondering.... Have your tried adding !important

PHP:
.messageUserBlock .extraUserInfo {
text-align: center !important;
}
 

Brogan

XenForo moderator
Staff member
#13
To answer the original question, add to EXTRA.css:
Code:
.messageUserBlock .pairsJustified dt {
float: none;
margin-right: 0;
text-align: center;
}

.messageUserInfo .messageUserBlock .extraUserInfo dl.pairsJustified dd {
float: none;
text-align: center;
}
 

denisx04

Active member
#14
To answer the original question, add to EXTRA.css:
Code:
.messageUserBlock .pairsJustified dt {
float: none;
margin-right: 0;
text-align: center;
}

.messageUserInfo .messageUserBlock .extraUserInfo dl.pairsJustified dd {
float: none;
text-align: center;
}
You beautiful man you! Always the best, thanks so much Brogan!
 

Amaury

Well-known member
#15
To answer the original question, add to EXTRA.css:
Code:
.messageUserBlock .pairsJustified dt {
float: none;
margin-right: 0;
text-align: center;
}

.messageUserInfo .messageUserBlock .extraUserInfo dl.pairsJustified dd {
float: none;
text-align: center;
}
This would be great for DOTATalk, but it's still on XenForo 1.1.4.

Does this work on any version?