Created
July 7, 2020 12:00
-
-
Save kertnik05/64900308099e4ebd2858a1780ab7736e to your computer and use it in GitHub Desktop.
Create diagonal border of a cell
This file contains hidden or 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
| td { | |
| padding: 50px; | |
| border: 2px solid black; | |
| background-image: -webkit-gradient(linear, left top, right bottom, color-stop(49%, white), color-stop(50%, black), color-stop(51%, white)); | |
| background-image: -webkit-linear-gradient(top left, white 49%, black 50%, white 51%); | |
| background-image: -o-linear-gradient(top left, white 49%, black 50%, white 51%); | |
| background-image: linear-gradient(to bottom right, white 49%, black 50%, white 51%); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment