Last active
March 18, 2020 19:53
-
-
Save 7cc/54111522be3b174cd4eb to your computer and use it in GitHub Desktop.
multi-border-color.css
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
<iframe srcdoc=" | |
<!doctype html> | |
<style> | |
.multi-border-color { | |
border-style: solid; | |
border-image-source: linear-gradient(to right, crimson 15%, #ddd 15% 100%); | |
border-image-width: 0px 0px 10px 0px; | |
border-width: 0px 0px 10px 0px; | |
border-image-slice: 1; | |
} | |
</style> | |
<p class="multi-border-color">hello</p> | |
" frameborder="1"></iframe> |
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
.multi-border-color { | |
border-style: solid; | |
border-image-source: linear-gradient(to right, crimson 15%, #ddd 15% 100%); | |
border-image-width: 0px 0px 3px 0px; | |
border-width: 0px 0px 3px 0px; | |
border-image-slice: 1; | |
} |
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
/* border-image */ | |
border-image-source: linear-gradient(to right, crimson 30%, teal 0%); | |
border-image-width: 0px 0px 10px 0px; | |
border-image-slice: 10 0; | |
border-image-repeat: round; | |
border-image-outset: 0; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment