I have a font font.tff and want to add it to the following html code. I want to add it only to the menu, @font-face I saw it changes the font to all the text. How can I add it with CSS? Thank you.
<div id="menu">
<ul>
<li>menu 1</li>
<li>menu 2</li>
<li>menu 3</li>
<li>menu 4</li>
<li>menu 5</li>
</ul>
</div>
I used the following:
<style>
@font-face {
font-family: "Your typeface";
src: url("ffan.tff");
}
#menu {
font-family: "Your typeface";
}
</style>
but doens't modify anything.