How to add gray background hover effect on table rows with Bootstrap

1 Answer

0 votes
<!DOCTYPE html>
<html lang="en">
<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">
</head>
  
<body>
  
<div class="container">
  <h1>Bootstrap Table With Grey Background Hover Effect</h1>
   <table class="table table-hover">
    <thead>
      <tr>
        <th>Language</th>
        <th>Know</th>
        <th>Experience</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td>PHP</td>
        <td>Yes</td>
        <td>10 Years</td>
      </tr>
      <tr>
        <td>C</td>
        <td>Yes</td>
        <td>20 Years</td>
      </tr>
      <tr>
        <td>C#</td>
        <td>Yes</td>
        <td>13 Years</td>
      </tr>
    </tbody>
  </table>
</div>
  
</body>
</html>

 



answered Jul 8, 2017 by avibootz
...