center username and title

maszd

cXF BRONZE
cXF Donor
Messages
112
Likes
43
#1
Hi @BassMan

i was use this code to center username and title :
Code:
.messageUserBlock h3.userText, .messageUserBlock a.username {
  text-align: center;
}
but on responsive view, username and title still align to center, how to make that align to left like normal on responsive view? i was try use this code but not working:
Code:
<xen:if is="@enableResponsive">
@media (max-width: @maxResponsiveNarrowWidth)
{
    .messageUserBlock h3.userText, .messageUserBlock a.username {
    {
         text-align: left;
    }
}
</xen:if>
Thank you.
 

maszd

cXF BRONZE
cXF Donor
Messages
112
Likes
43
#2
oke solved with this code :)
Code:
.messageUserBlock a.username,
.messageUserBlock .userTitle {
    text-align: center;
}

<xen:if is="@enableResponsive">
@media (max-width: @maxResponsiveNarrowWidth)
{
.messageUserBlock a.username,
.messageUserBlock .userTitle
{
    text-align: left;
}
}
</xen:if>
 

You must log in or register to reply here.

Forgot your password?
Don't have an account? Register now

Welcome to customizeXF

We are running default XenForo style customized by cXF
Registration is free!

Similar threads

Top