Skip to content

Instantly share code, notes, and snippets.

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