I need to set a condition for applying padding to an element. The template in question is "public.css".
My current CSS code is as follows:
I need "padding-left: 9px;" to apply only when the user chooses to be visible. In order to achieve this I enclosed it in a conditional statement:
Unfortunately, it's not working. Where is my mistake?
My current CSS code is as follows:
Code:
.message.horizontal .messageUserBlock a.username
{
margin-left: -24px;
padding-left: 9px;
}
I need "padding-left: 9px;" to apply only when the user chooses to be visible. In order to achieve this I enclosed it in a conditional statement:
Code:
.message.horizontal .messageUserBlock a.username
{
margin-left: -24px;
<xen:if is="{$user.visible}">padding-left: 9px;</xen:if>
}
Unfortunately, it's not working. Where is my mistake?