Created
April 25, 2012 04:45
-
-
Save magemore/2486456 to your computer and use it in GitHub Desktop.
Adding an image-based border – border-image
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-style { | |
border-width:15px; | |
/* 3 types of border exist repeated, rounded or stretched (repeat / round / stretch) */ | |
-moz-border-image:url(border.png) 30 30 stretch ; | |
-webkit-border-image:url(border.png) 30 30 stretch; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can create any kind of border you want for any object(s) on your website using this. Just supply your own border.png image, and the use the border-image property on a object to add that image-based border to it.