tags:

views:

17

answers:

1
+1  Q: 

trs inside a box

Is there a way to put 3 trs ina table inside a box kind of border??

+2  A: 

You can add another <tbody> for these <tr>s, which seems to do what you mean (note that I couldn't get it to work on IE6).

<table>
    <tbody>
        <tr><td>before</td></tr>
    </tbody>
    <tbody class="RedBorder">
        <tr><td>1</td></tr>
        <tr><td>2</td></tr>
        <tr><td>3</td></tr>
    </tbody>
    <tbody>
        <tr><td>after</td></tr>
    </tbody>
</table>

Example: http://jsfiddle.net/kobi/gaQ9V/

Kobi