center username and title

maszd

cXF Pack A
cXF Donor
Messages
113
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 Pack A
cXF Donor
Messages
113
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>
 

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.

Top