Changing element width based on post position

speedway

Well-known member
Hi all

I am just working on replacing my theme and have come across a small issue with in post adverts. I am using code to place an advert into the first post on the page, that works fine. However, if there is a quote in that post the advert will overlay it.

Is there a way to dynamically assign a width to the quote block when it appears in a certain post position, something like

if post # = 0
set style width for quote to 75%
else
do nothing
end if
 
Thanks Jake

That doesn't quite do what I want. I was wanting to only change that width if there was an advert showing in the post. I think I may have found the answer while looking at another skin, using the xen:set command might work. Haven't tried it yet so pure speculation on my part :)
 
Back
Top Bottom