Skip to content

Instantly share code, notes, and snippets.

@nimbupani
Created April 13, 2010 01:38
Show Gist options
  • Save nimbupani/364222 to your computer and use it in GitHub Desktop.
Save nimbupani/364222 to your computer and use it in GitHub Desktop.
// Image Replacement Mixin
// Uses Compass's image_url(), image_width() & image_height() function
=image-replacement(!imageurl)
background-image = image_url(!imageurl)
width = image_width(!imageurl)
height = image_height(!imageurl)
display: block
overflow: hidden
text-indent: -1000px
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment