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 Framework Basics Build a Website with Bootstrap Adding Icon Fonts with IcoMoon

VISHAL DEEPAK
VISHAL DEEPAK
3,272 Points

No space between icons and text

I dont have spaces between the icon and text , as much as shown in the video

code for icons

<div class="col-sm-5">
                    <p><strong>Or visit an app store to download now!</strong></p>
                    <a class="btn btn-default btn-lg" href="#" data-icon="&#xe600;">IOS</a>
                    <a class="btn btn-default btn-lg" href="#" data-icon="&#xe601;">Android</a>
                </div>

And the css code is as follows

/* ICO-MOON
================================= */
@font-face {
    font-family: 'icomoon';
    src:url('../fonts/icomoon.eot?2sxgfm');
    src:url('../fonts/icomoon.eot?#iefix2sxgfm') format('embedded-opentype'),
        url('../fonts/icomoon.ttf?2sxgfm') format('truetype'),
        url('../fonts/icomoon.woff?2sxgfm') format('woff'),
        url('../fonts/icomoon.svg?2sxgfm#icomoon') format('svg');
    font-weight: normal;
    font-style: normal;
}

[data-icon]::before {
    font-family: 'icomoon';
    content: attr(data-icon);
    speak: none;
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    line-height: 1;

    /* Better Font Rendering =========== */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}