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

HTML

Samvel Tadevosyan
Samvel Tadevosyan
7,117 Points

Need help for inserting css icon to html

Hi,

I am new in web-development and had problems for inserting an icon to my html file.

In the video "weekly dose of web design and web development news" of this week I knew about those icons: http://saeedalipoor.github.io/icono/ and wanted to use them.

I downloaded it and added to my workspace as icono.min.css

Added to my html

 <link rel="stylesheet" href="icono.min.css">

And trying to add an icon with name: "icono-cross"

tried several ways in one of the dives to source that image such as:

<img src="css/icono.min.css/icono-cross">
<img src="icono-cross">

but instead of icon I am getting an errored image in the view page.

How should I source it?

Thanks in advance, Sam

1 Answer

Samvel Tadevosyan
Samvel Tadevosyan
7,117 Points

Oh just found it, those are classes in the css file!