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

Where does the phone icon come from in the video?

In the CSS Foundations, Advanced Selectors, ::before and ::after segment the content code: "\2706"; is used. Where does that number come from? It is not included in the .img file like the PDF was. And I didn't hear an explanation for it.

2 Answers

Stone Preston
Stone Preston
42,016 Points

thats the unicode character code for a "telephone location sign" symbol. see this for more info. you dont need to have an image file for it, its a unicode character.

Thanks for the quick answer! I suspected it was something like that. The \ threw me off though. Does that work in place of the U+ part of the unicode when calling up characters and symbols?

Stone Preston
Stone Preston
42,016 Points

yes the "\XXXX" is the general format for unicode characters in your css

Roger that! Thanks again for the guidance. The link was quite helpful.