Welcome to the Treehouse Community
The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Timothy Hooker
15,323 PointsI am having a hard time with this task of putting an inline image as the background in Compass.
how would you declare the image and background for this file ''mixin-monster.png''
3 Answers

Kate Hoferkamp
5,205 PointsTry this:
@import "compass";
.featured-icon {
background: image-url('mixin-monster.png') inline;
}
You have to import compass to be able to use it.

Elizabeth BABYCH
6,993 PointsThanks Timothy! I thought I tried everything...

Timothy Hooker
15,323 Points.featured-icon {
background: image-url( inline-image('mixin-monster.png') );
}
OK I kept poking around and figured it out.

Timothy Hooker
15,323 PointsThanks Kate , I had the @import in there but that was a good point.
Timothy Hooker
15,323 PointsTimothy Hooker
15,323 PointsThis is what I've been doing: