Skip to content

Instantly share code, notes, and snippets.

@bfred-it bfred-it/CSS
Last active Aug 29, 2015

What would you like to do?
Sublime Text 2/3 snippet for the CSS "clip" property, for easier input
<!-- Source: -->
<!-- Updated 2014-06-05 -->
<!-- MIT license -->
clip: rect(
${1:top }px, /*top*/
${6:${4:width}+${2:left }}px, /*width+left*/
${5:${3:height}+${1}}px, /*height+top*/
${2}px /*left*/
This snippet will help you define the `clip` values in order:
- top
- left
- height
- width
If you're using SASS (or maybe LESS) that's it. Otherwise you will have to do some easy math in place:
- height+top
- width+left
Learn more about the `clip` property:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.