Skip to content

Instantly share code, notes, and snippets.

@datadiode
Last active May 25, 2024 14:51
Show Gist options
  • Save datadiode/d0e2933af1b5c5ebd877c061e23fa341 to your computer and use it in GitHub Desktop.
Save datadiode/d0e2933af1b5c5ebd877c061e23fa341 to your computer and use it in GitHub Desktop.
CSS and HTML to create buttons with raising and falling edge symbols
<style>
button u, button p { display: inline-block; margin: 0;
height: 2.4ex; width: 1ex; border-style: solid; }
button u:first-child { border-width: 0 1px 2px 0; }
button p:last-child { border-width: 2px 0 0 1px; }
button p:first-child { border-width: 2px 1px 0 0; }
button u:last-child { border-width: 0 0 2px 1px; }
</style>
<button><u></u><p></p></button>
<button><p></p><u></u></button>
@datadiode
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment