I have downloaded a site with a site downloader, which had nice icons on it. But after downloading it, that icons went away and I cannot see any image file.
In html, it's like this.
<li class="active">
<a href="buttons.html">
<i class="icon-up"></i> Buttons
</a>
</li>
the class looks like below.
.icon-up:before {content: "\f0a6"; }
What is the meaning of that class definition's
:before
content
and
"\f0a6"
Google really helps.
content
denotes a real content that's put inside a css element. So, p:before {content: 'hello'}
would put a string hello
in front of the paragraph content. See here: http://jsfiddle.net/gRjRe/
The content you shown ("\f0a6"
) is just a Unicode value for a font character. See how they are used here, for example: http://astronautweb.co/snippet/font-awesome/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With