Thursday, June 12, 2014

Selenium : Adding hoverhighlight to Html Report

Adding hoverhighlight to Html Report





!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
   <head>
     <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
     <title>My site title</title>
    <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>
  </head>
  
  
  <body>
   <table class="hoverTable">
        <tr>
               <td>Text 1A</td><td>Text 1B</td><td>Text 1C</td>
        </tr>
        <tr>
               <td>Text 2A</td><td>Text 2B</td><td>Text 2C</td>
        </tr>
        <tr>
               <td>Text 3A</td><td>Text 3B</td><td>Text 3C</td>
        </tr>
</table>
  </body>
</html>

No comments:

Post a Comment