table-hover - Creates a hoverable table - HTML CSS Bootstrap Class List

HTML CSS examples for Bootstrap Class List:table-hover

Description

table-hover - Creates a hoverable table

Demo Code

ResultView the demo in separate window

<!DOCTYPE html>
<html>
<head>
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
  <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
  <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
</head><!--   w  w w  .  j  a v a2s.c om-->
<body>

<div class="container">
  <h2>Hover Rows</h2>
  <p>The .table-hover class enables a hover state on table rows:</p>
  <table class="table table-hover">
    <thead>
      <tr>
        <th>Firstname</th>
        <th>Lastname</th>
        <th>Email</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td>John</td>
        <td>H</td>
        <td>I</td>
      </tr>
      <tr>
        <td>Mary</td>
        <td>K</td>
        <td>L</td>
      </tr>
      <tr>
        <td>July</td>
        <td>java2s.com</td>
        <td>b o o k 2 s.com</td>
      </tr>
    </tbody>
  </table>
</div>

</body>
</html>

Related Tutorials