0

I have used datatable,

when i hovered over row bottom shadow is not displaying , why? only right and left shadow is displayed.

  table.dataTable tbody tr:hover {
                    
                   background-color: #fbfbfb; box-shadow: 0px 2px 18px 0px rgba(0,0,0,0.5); cursor: pointer; 
                   border-bottom:double;
                }

enter image description here

pratik
  • 1
  • 2

2 Answers2

0

Try positioning the rows relative, setting the display to block and setting the z-index in tr:hover to bring the current table row to the front.
E.g.:

table tbody tr:hover {
background-color:#13326b;
color:#ffffff;
text-shadow: 1px 2px #000000;
box-shadow: 0px 0px 10px #ff0000;
-webkit-box-shadow: 0px 0px 10px #ff0000;
-moz-box-shadow: 0px 0px 10px #ff0000;
z-index:100;
}
td, th { padding-left: 16px; min-width: 170px;  text-align: left; }
table tbody tr , table tbody td{
    height:100px;
}
tr{
  display: block;
  position:relative;
  background-color:#fff;
}
Sebastian
  • 1
  • 1
0

enter image description here

 table.dataTable { 
  box-sizing: border-box; 
}

 table.dataTable td, th { 
  width:100%
}

  table.dataTable tr {
  display: block; 

}
   table.dataTable tr:hover {     
  position: relative; 
  background-color: orange;  
  cursor: pointer; 
  box-shadow: 0px 2px 18px 0px rgba(0,0,0,0.5); 
  cursor: pointer; 
}


i got shadow using above code but, ui is disguised.

pratik
  • 1
  • 2