center username and title

maszd

cXF BRONZE
cXF Donor
Messages
105
Likes
41
#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
105
Likes
41
#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>
 

Welcome to customizeXF

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

Similar threads