<div class="container">
<table class="neumorphic">
<thead>
<tr>
<th>Column 1</th>
<th>Column 2</th>
<th>Column 3</th>
<th>Column 4</th>
<th>Column 5</th>
</tr>
</thead>
<tbody>
<tr>
<td>Cell 1</td>
<td>Cell 2</td>
<td>Cell 3</td>
<td>Cell 4</td>
<td>Cell 5</td>
</tr>
<tr>
<td>Cell 1</td>
<td>Cell 2</td>
<td>Cell 3</td>
<td>Cell 4</td>
<td>Cell 5</td>
</tr>
<tr>
<td>Cell 1</td>
<td>Cell 2</td>
<td>Cell 3</td>
<td>Cell 4</td>
<td>Cell 5</td>
</tr>
<tr>
<td>Cell 1</td>
<td>Cell 2</td>
<td>Cell 3</td>
<td>Cell 4</td>
<td>Cell 5</td>
</tr>
<tr>
<td>Cell 1</td>
<td>Cell 2</td>
<td>Cell 3</td>
<td>Cell 4</td>
<td>Cell 5</td>
</tr>
</tbody>
</table>
</div>
html,
body{
height: 100%;
}
body {
margin: 0;
background: #e0e5ec;
font-family: Arial, Helvetica, sans-serif;
font-weight: 100;
}
.container {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
table.neumorphic{
width: 600px;
border-spacing: 0;
color: #212121;
text-align: center;
overflow: hidden;
box-shadow: 9px 9px 16px rgba(163, 177, 198, 0.6),
-9px -9px 16px rgba(255, 255, 255, 0.6);
}
table.neumorphic thead{
box-shadow: 9px 9px 16px rgba(163, 177, 198, 0.6);
}
table.neumorphic th{
padding: 7px;
}
table.neumorphic>tbody>tr>td {
padding: 10px;
font-size: 14px;
position: relative;
}
table.neumorphic>tbody>tr:hover {
padding: 20px;
box-shadow: 9px 9px 16px rgba(163, 177, 198, 0.6),
-9px -9px 16px rgba(255, 255, 255, 0.6);
}
table.neumorphic tr td:first-child::before {
content: "";
position: absolute;
padding: 7px;
top: 0;
left: -5000px;
width: 10000px;
height: 100%;
z-index: -10;
}
table.neumorphic td:hover::after {
content: "";
position: absolute;
box-shadow: 9px 9px 16px rgba(163, 177, 198, 0.6),
-9px -9px 16px rgba(255, 255, 255, 0.6);
left: 0;
top: -5000px;
height: 10000px;
width: 100%;
z-index: -1;
}
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.