Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
: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
You can’t perform that action at this time.