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.

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.