# PHP logic with CSS question

**URL:** <https://forum.kirupa.com/t/php-logic-with-css-question/291718>\
**Category:** programming\
**Created:** [July 3, 2009, 5:20pm UTC](https://forum.kirupa.com/t/php-logic-with-css-question/291718 "2009-07-03T17:20:24Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bobcahill](https://avatars.discourse-cdn.com/v4/letter/b/6f9a4e/32.png) [@bobcahill](https://forum.kirupa.com/u/bobcahill)\
**Post date:** [July 3, 2009, 5:20pm UTC](https://forum.kirupa.com/t/php-logic-with-css-question/291718/1 "2009-07-03T17:20:24Z")

</div>

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’); ?\>  
\</a\>\</li\>  
\<li class=“entry”\>\<a href="\<?php the\_permalink(); ?\>"\>  
\<?php the\_excerpt(); ?\>  
\</a\>\</li\>  
\<?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?
