with php conditional echoes, there may be a single result or there may be multiple (likely up to 4) Or rarely there may even be none.

Can this be adapted to show top and bottom 'shared' borders and how might it be applied? (looking for something widely compatible)

Code:
.uplow {background: #F8F8F8; color: #333333; border-top: 1px solid #CCCCCC; border-bottom: 1px solid #CCCCCC; margin: 3px 0 0 0; padding: 2px; font-size: 12px; font-weight: normal; font-style: normal; }
note: this is not within a table.
ex (covers top and bottom borders, however it is the entire width):

_____________
row1
_____________
row2
_____________
row3
_____________