Created
January 15, 2013 10:31
-
-
Save martinnormark/4537774 to your computer and use it in GitHub Desktop.
CSS for rendering table rows, as if they were countersunk in relation to the rows above and below
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tr.countersink.top td { | |
-webkit-box-shadow: inset 0 3px 8px rgba(0, 0, 0, 0.125); | |
-moz-box-shadow: inset 0 3px 8px rgba(0, 0, 0, 0.125); | |
box-shadow: inset 0 3px 8px rgba(0, 0, 0, 0.125); | |
} | |
tr.countersink td { | |
background-color: #F7F7F7; | |
-webkit-box-shadow: inset 0 0px 5px rgba(0, 0, 0, 0.125); | |
-moz-box-shadow: inset 0 0px 5px rgba(0, 0, 0, 0.125); | |
box-shadow: inset 0 0px 5px rgba(0, 0, 0, 0.125); | |
border-top: none; | |
} | |
tr.countersink.bottom td { | |
-webkit-box-shadow: inset 0 -3px 8px rgba(0, 0, 0, 0.125); | |
-moz-box-shadow: inset 0 -3px 8px rgba(0, 0, 0, 0.125); | |
box-shadow: inset 0 -3px 8px rgba(0, 0, 0, 0.125); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<table class="table table-striped table-bordered"> | |
<tr><td>First Name</td><td>Last Name</td></tr> | |
<tr><td>First Name</td><td>Last Name</td></tr> | |
<tr class="countersink top"><td>First Name</td><td>Last Name</td></tr> | |
<tr class="countersink"><td>First Name</td><td>Last Name</td></tr> | |
<tr class="countersink"><td>First Name</td><td>Last Name</td></tr> | |
<tr class="countersink bottom"><td>First Name</td><td>Last Name</td></tr> | |
<tr><td>First Name</td><td>Last Name</td></tr> | |
<tr><td>First Name</td><td>Last Name</td></tr> | |
</table> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment