omg omg - 7 months ago 11
HTML Question

How to specify the bottom border of a <tr>?

I tried :

.bb (
border-bottom:1px;
)

<tr class="bb">


But no effect at all.

Answer

Try the following instead:

<html>
 <head>
  <title>Table row styling</title>
  <style type="text/css">
    .bb td, .bb th {
     border-bottom: 1px solid black !important;
    }
  </style>
 </head>
 <body>
  <table>
    <tr class="bb">
      <td>This</td>
      <td>should</td>
      <td>work</td>
    </tr>
  </table>
 </body>
</html>