How to display a border-bottom only if table cells are not empty (CSS)

Posted by Polarpro on Stack Overflow See other posts from Stack Overflow or by Polarpro
Published on 2010-03-14T11:24:10Z Indexed on 2010/03/14 11:35 UTC
Read the original article Hit count: 117

Filed under:

Hey there, I've got a Filemaker calculation that generates an HTML page with several tables.

If the calculation results in values for certain fields the result would be

<table>
<tr><td>Example value 1</td></tr>
<tr><td>Example value 2</td></tr>
...
</table>

If the calculation finds no values to be displayed, the result would simply be

<table>
</table>

In the first case, I want to the table to display a border at the bottom (or any other horizontal line); in the second case, I don't want to display a border at the bottom.

I cannot find a way to get this done using a CSS...

Thanks in adavance :-)

© Stack Overflow or respective owner

Related posts about css