#Unable to put special font on w3space

7 messages · Page 1 of 1 (latest)

subtle lion
#

So I tried to put a woff2 font on my w3project (i put the woff2 file in the space but nothing is working). Could someone help me? Did I miss something?

somber ingot
# subtle lion So I tried to put a woff2 font on my w3project (i put the woff2 file in the spac...

First of all, you cannot do
style="font-family:"w95fa"; !important"
Because the style will only be read as style="font-family:"
Because you cannot use quotes inside.

Also, inline styling is the most specific selector. So it makes no sense to add !important

Learn about Specificity Levels.
Inline styling has 1 0 0 0 specificity. and thats exactly why you should not do inline styling or targeting ids in CSS

#

Keep the specificity level low 0 0 1 0

#

But yeah the correct way to write it would be style="font-family:w95fa !important;"
But once again, i would advice you not do do this

subtle lion
#

Thanks but i changed the style="font-family:"w95fa"; !important" to style="font-family:w95fa !important;" but it still doesn't work. Even if I remove !impotant. Do you think it may have something to do with the w3space?

somber ingot
#

So thats the name you should be using