Created
October 13, 2020 11:58
-
-
Save saipraveen-a/f0e0931aa1a2339d5b7be97cff2efa25 to your computer and use it in GitHub Desktop.
CSS Borders
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
/* Snippet1 */ | |
header { | |
width: 100px; | |
border-color: yellow; | |
border-width: 20px; | |
border-style: solid; | |
padding: 20px; | |
margin: 20px; | |
} | |
main { | |
padding: 20px; | |
border: solid yellow 20px; | |
} | |
/* Snippet 2 */ | |
header { | |
width: 100px; | |
border-top: solid yellow 20px; | |
border-bottom: dotted pink 10px; | |
padding: 20px; | |
margin: 20px; | |
} | |
/* Snippet 3 */ | |
header { | |
width: 100px; | |
border: 10px solid red; | |
border-bottom-color: yellow; | |
border-left-style: dashed; | |
padding: 20px; | |
margin: 20px; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment