Is it possible to detect the actual height of a dynamic DIV that has its height set to :auto after the PHP has been processed? Say for example you have a left column and a right column. The left column is a news story, or a blog post, whatever... the right column is a sidebar, and you have content in both. The left column height is defined by the content, so if it is a long news story, the left DIV will be taller, if it is only one paragraph it won't make it very tall, right? Is it possible to detect the height that it stretches to? The reasoning would be that say the right sidebar had content that is 400px tall. I'd like to display optional content below that, like a tower ad or a poll, but only if that content would end up about the same height as the left column overall, or thereabouts. This would avoid having a tower ad or poll that extended well below the article and not get seen.
Say the right sidebar content is 400px tall and the tower ad is another 400px tall. I want to basically enact this;
if ($leftcol_height > 800px)
{
show ad
}
else
{
don't show ad
}
any ideas on how to do this server side or client side even?