Seattle Sass and Front End Community Message Board › Anyone tried Pseudo background-crop with Compass sprite?

Anyone tried Pseudo background-crop with Compass sprite?

Hoc
user 6295253
Seattle, WA
Post #: 1
I have 2 PNGs with arrow shape (used for button). First is gray one and second is white one (which will have gray background when hover):
http://tinypic.com/r/...­
http://tinypic.com/r/...­

They are both in "buttons" folder. I want to center them in a DIV of 30px by 45px and use this method:
http://nicolasgallagh...­

Here is my code which doesn't work:
@import "buttons/*.png"
@include all-buttons-sprites

.buttons-arrow
background-image: none
width: 30px
height: 45px

.buttons-arrow:before
+buttons-sprites(arrow)
display: block
content: ""
width: 15px
height: 27px

What is the best way around doing :before in Compass?
Powered by mvnForum

People in this
Meetup are also in:

Sign up

Meetup members, Log in

By clicking "Sign up" or "Sign up using Facebook", you confirm that you accept our Terms of Service & Privacy Policy