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

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!