Created
January 21, 2012 17:07
-
-
Save geoffreycrofte/1653306 to your computer and use it in GitHub Desktop.
:before & :after on table elements
This file contains hidden or 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
/** | |
* :before & :after on table elements | |
*/ | |
table { border: 1px solid; } | |
td { border: 1px solid; padding: 1em; } | |
td:after, td:before { content: " - "; } | |
This file contains hidden or 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> | |
<tr><td>Case 1-1</td><td>Case 1-2</td></tr> | |
<tr><td>Case 2-1</td><td>Case 2-2</td></tr> | |
</table> |
This file contains hidden or 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
{"view":"split","prefixfree":"1","page":"css"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment