Skip to content

Instantly share code, notes, and snippets.

@vikpe
Last active May 3, 2021 14:22
Show Gist options
  • Save vikpe/669d9eba2830301eae594d7198124b7c to your computer and use it in GitHub Desktop.
Save vikpe/669d9eba2830301eae594d7198124b7c to your computer and use it in GitHub Desktop.
CSS responsive border using box-shadow to simulate the same behavior as "border-collapse: collapse"
.responsive-border {
box-shadow: 1px 0 0 0 black,
0 1px 0 0 black,
1px 1px 0 0 black,
1px 0 0 0 black inset,
0 1px 0 0 black inset;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment