tags:

views:

81

answers:

2

CSS

table tr {border-bottom:1px solid #008999}

HTML

<table width="100%" cellspacing="0" cellpadding="0">
   <thead>
      <tr>
         <th scope="col">one</th>
         <th scope="col">two</th>
         <th scope="col">three</th>
      </tr>
   </thead>
   <tbody>
      <tr>
         <th scope="row">Hello</th>
         <td>&nbsp;</td>
         <td>&nbsp;</td>
      </tr>
   </tbody>
</table>
+5  A: 

Try giving

table tr th {border-bottom:1px solid #008999}

Then you can use

table { border-collapse: collapse; }
table tr {border-bottom:1px solid #008999; }

See The collapsing border model

rahul
i need on tr not th
metal-gear-solid
@metal-gear-solid: What exactly are you trying to achieve? Can you describe the visual result you wish to see?
Raul Agrait
@raul - see this `table tr {border-bottom:1px solid #008999}` it means every `TR` in `table` should have border with `1px` height `solid` and in this color `#008999`. What is not clear?
metal-gear-solid
+4  A: 

Add:

table
{
    border-collapse: collapse;
}

Otherwise tr creates no single block.

toscho
first of all you found the solution so I'm accepting your answer
metal-gear-solid