Now if we generate sprite image using compass
@import "imgs/*.png";
@include all-imgs-sprites;
we ill gate in our .css classes like this
.imgs-<imagename>
is it possible to delete “imgs” part? I need only .<imagename>
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
In that case don’t use the magical
all. It’s not as convenient, but works fine. Just@importthe sprite and@includethe individual images in custom classes:Make your life simpler by DRYing it up: