I wanted to add an icon via the content attribute of CSS. I just copied the code written in the first answer here for a telephone icon:
Use font awesome icon as css content
But I don't see any telephone icon. Instead, I'm seeing an empty square- why is that?
This is the full code I used:
index.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<link rel="stylesheet" type="text/css" href="format.css">
</head>
<body>
<a href="#">This is a link</a>
</body>
</html>
format.css:
body {
font-family: Arial;
font-size: 13px;
}
a {
text-decoration: none;
color: #515151;
}
a:before {
font-family: FontAwesome;
content: "\f095";
display: inline-block;
padding-right: 3px;
vertical-align: middle;
}