If Area is being used then give min-height

Permalink
Hey there! So I've been trying to deal with this one issue on my site and I'm not sure how to fix it. Here is a screenshot:

http://i.imgur.com/eau2PZ5.png

Is there a way to make sure that:
If Area is filled (for example with a content Block).
Then min-height becomes 500px.


That way I know for sure they won't mis-align.

 
hutman replied on at Permalink Reply
hutman
You should be able to do something like this

<?php
$a = new Area('Main');
$total = $a->getTotalBlocksInArea($c);
?>
<div class="<?php if($totalBlocks > 0) echo 'min-height-class'; ?>">
    <?php $a->display($c); ?>
</div>