PHP logic with CSS question

I have a unordered list that is populated by PHP and styled with CSS.

<?php while (have_posts()): the_post(); ?>
<li class=“date”><a href="<?php the_permalink(); ?>">
<?php the_time(‘F j, Y’); ?>
<?php the_time(‘g:i a’); ?>
<li class=“entry”><a href="<?php the_permalink(); ?>">
<?php the_excerpt(); ?>
<?php endwhile; ?>

This list is vertical in and needs to end at about 200 pixels in height. Is there a progamatical way to measure the height of the css area so PHP can pull out of the while loop so it stops displaying the information?