Last active
May 3, 2021 14:22
-
-
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"
This file contains 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
.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