Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

CSS

Alexis Gourdol
Alexis Gourdol
8,467 Points

Frameworks basics - Adding the Feature Icons (Ribbit project)

Hi, I am having an issue adding the Icons from the spritesheet inside the div as showed by Guil in this video: http://teamtreehouse.com/library/framework-basics/build-a-website-with-bootstrap/adding-the-feature-icons.

I followed every step in the css file. Help would be much appreciated!

.ft-icon::before{
    content: " ";
    display: block;
    position: absolute;
    width: 164px;
    height: 102px;
    top:0;
    right:0;
    bottom:0;
    left:0;
    margin:auto;
    background: url('../img/feature-icons.png') no-repeat;
    background-size: 100%;
}

I tried debugging in the console and saw that the before element was not appearing: inserting icon in 'before' pseudo element

1 Answer

Alexis Gourdol
Alexis Gourdol
8,467 Points

OK I need some rest. Just remenber to refresh the right html file guys !! PS: I don't know how to delete this question