﻿/* NB1: Done on 31/07/2018 - 02/08/2018, 07-08,11/08/2018 */

/*
Copied and edited from Ref: https://www.w3schools.com/html/tryit.asp?filename=tryhtml_table_id2
*/

table {
    width:100%;
}
table, th, td {
    border: 1px solid black;
    border-collapse: collapse;
}
th, td {
    padding: 15px;
    text-align: left;
}
table#myTable tr:nth-child(odd) {
    background-color: #eee;
}
table#myTable tr:nth-child(even) {
   background-color: #fff;
}

/* No Hover for all tr, 22/Sep/2021.
table#myTable tr:hover {
  background-color: lightyellow;
  color:red;
}
*/

/* table#myTable th { */                /* NB: Although using th is ok, but we replace it with tr.headerRow, => hover effect can apply to whole row. */
table#myTable tr.headerRow {
    background-color: lightgreen;
    color: white;
}

table#myTable th:hover {
    background-color: lightyellow;
    color: red;
    /*text-decoration: underline;*/
    cursor: pointer;
}

/* Copied and edited from: https://www.w3schools.com/howto/tryit.asp?filename=tryhow_js_filter_table */
* {
  box-sizing: border-box;
}

/*--- De-activated all, 22/Sep/2021, 28/Sep/2021.
#myInput,#myInput2 {
  /*background-image: url('/css/searchicon.png');*/
/*---  background-position: 10px 10px;
  background-repeat: no-repeat;
  width: 50%; /*100%;*/
/*---  font-size: 16px;
  padding: 12px 20px 12px 40px;
  border: 1px solid #ddd;
  margin-bottom: 12px;
}
---*/