<xen:if is="{$post.position} % {$xenOptions.messagesPerPage} == 0">
<div class="right_block">
<!-- Ad code here -->
</div>
</xen:if>
.messageList .message:first-child .messageInfo.primaryContent { margin-right: 310px; }
.messageList .message:first-child .right_block
{
float:right;
height:250px !important;
width:300px !important;
}
{xen:if '{$post.position} % {$xenOptions.messagesPerPage} == 1', indent}
<xen:if is="{$post.position} % {$xenOptions.messagesPerPage} == 1">
<div class="right_block">
<!-- Ad code here -->
</div>
</xen:if>
.messageList .message.indent .messageInfo.primaryConent { margin-right: 310px; }
.messageList .message.indent .right_block
{
float:right;
height:250px !important;
width: 300px !important;
}
.messageList .message.indent .messageInfo.primaryConent { margin-right: 310px; }
{xen:if '{$post.position} % {$xenOptions.messagesPerPage} == 1 AND !{$visitor.user_id}', indent}
<xen:if is="{$post.position} % {$xenOptions.messagesPerPage} == 1 AND !{$visitor.user_id}">
<div class="right_block">
<!-- Ad code here -->
</div>
</xen:if>
<xen:if is="!{$visitor.user_id}">
.messageList .message.indent .messageInfo.primaryConent { margin-right: 310px; }
.messageList .message.indent .right_block
{
float:right;
height:250px !important;
width: 300px !important;
}
</xen:if>
{xen:if '{$post.position} % {$xenOptions.messagesPerPage} == 1 AND !{$visitor.user_id}', indent}
<xen:if> works in CSS, I use it all the time.Update: I figured out that <xen:if> condition does not really work in the extra.css
I sometimes wonder why the talented people in this community can't fix a small css problem.
We use essential cookies to make this site work, and optional cookies to enhance your experience.