center username and title

Currently reading:
center username and title

maszd

cXF Pack C
cXF Pack B
cXF Donor
May 20, 2015
119
46
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 Pack C
cXF Pack B
cXF Donor
May 20, 2015
119
46
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>
 

Create an account or login to comment

You must be a member in order to leave a comment

Create account

Create an account on our community. It's easy!

Log in

Already have an account? Log in here.

Welcome to customizeXF

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

Search forums

Similar threads

Sticky sidebar

You'd like to have sticky sidebar on your forum? Click below.

Top