Quotes & Attachments Run Into The Advertisements In First Post

TheBigK

Well-known member
I've created an ad-spot in every first post, right-aligned with the text; similar to the ad in first post in vBulletin.

The only issue I'm facing is that if the first post has a quote or attachment, then the quote/attachment container runs into the advertisements. Is there a CSS trick to adjust the size of the quote or attachment container dynamically so that they keep some margin with the advertisements?
 
What template code are you using for the ad? What ad template?

Or if you post a URL showing the problem then I can troubleshoot from there.
Thank you, Jake. I used following code in ad_message_body template -

Code:
<xen:hook name="ad_message_body" />
<xen:if is="{$post.position} == 0 AND !{$message.conversation_id}">
<div style="float: right; padding-left: 5px">
Ad content here
</div>
</xen:if>

It displays code right aligned with the text in first post. But when the first post has a 'quote', or 'attachment', then the quote holder or code holder (above) extends to the right-boundary, running into the advertisement. The normal text aligns well with the advertisement.

I don't have access to my test setup at the moment. Will try to upload screenshot in some time.
 
No problems here. It must be something with your style. Ideally I need to be able to load the web page so I can work with the problem. Is the test site online?
 
Top Bottom