sábado, 21 de marzo de 2015

HTML TABLE Highlited on mouse

<!DOCTYPE html>
<html>
<body>


<style style="text/css">
      .hoverTable{
        width:100%;
        border-collapse:collapse;
    }
    .hoverTable td{
        padding:7px; border:#4e95f4 1px solid;
    }
    /* Define the default color for all the table rows */
    .hoverTable tr{
        background: #b8d1f3;
    }
    /* Define the hover highlight color for the table row */
    .hoverTable tr:hover {
          background-color: #ffff99;
    }
</style>

<table class="hoverTable">
      <tr>
    <th>First Name</th>
    <th>Last Name</th>       
    <th>Points</th>
  </tr>
  <tr>
    <td>Jill</td>
    <td>Smith</td>       
    <td>50</td>
  </tr>
  <tr>
    <td>Eve</td>
    <td>Jackson</td>       
    <td>94</td>
  </tr>
  <tr>
    <td>John</td>
    <td>Doe</td>       
    <td>80</td>
  </tr>


</table>



</body>
</html>

No hay comentarios:

Publicar un comentario