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

Phone icon

My browser doesn't show the phone icon, but only a square

Here is my HTML:

<! DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <link rel="stylesheet" href="CSS/before.css">
</head>
<body>
    <p class="phone">       
  555-867-5309
</p>

<a class="dload" href="examples.pdf" title="- PDF"> 
  Download File
</a>

<div class="box">
  Generated Shapes
</div>
</body>
</html>

And this is my css:

body{
    padding: 1% 26.5%;
    background-color: #e0eef5;
    color: #333;
}
p, div{
    margin: 55px;
    font: 3em sans-serif;
}
a{
    color: blue;
    text-decoration: none;
    font: 2.5em sans-serif;
}
.phone::before {
    content: "\2706";
}

1 Answer

James Barnett
James Barnett
39,199 Points

It could be your file encoding, or it could be your browser or even your font.

The easiet way to check is if you see the phone icon in this example codepen

Then it's most likely that you didn't save your file as "utf-8 in your text editor.

How do you that depends on what text editor you are using, I did some quick googling for your sublime text & notepad++

Thank for your aswer!and Happy Holidays!