Skip to content

Instantly share code, notes, and snippets.

@jmwhittaker
Created February 28, 2011 12:16
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save jmwhittaker/847243 to your computer and use it in GitHub Desktop.
Save jmwhittaker/847243 to your computer and use it in GitHub Desktop.
Border-image CSS3 Mixin for Compass & SASS
/* Mixin for Compass - border-image
$border-image([$image-url], [$offsets], [$repeats])
Example:
@include border-image(url(../my_image.png), 10, stretch)
@include border-image(url(../my_image.png), 10 5 10 5, stretch repeat)
---------------------------------------- */
@mixin border-image($url, $offsets, $repeats) {
@include experimental("border-image", $url $offsets $repeats, -moz, not -webkit, -o, -ms, -khtml, official);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment