The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

@font-family doesn't seem to be working properly in css?

Go down

@font-family doesn't seem to be working properly in css?

Post by bmbmjmdm on July 28th 2015, 4:48 am

Hi, I had this code on my site for a while and it just recently stopped working. I found that the url was broken, so I replaced that with a new one that I verified works. Still, it doesn't appear that the font-family is working for one reason or another.

In CSS:
@font-face {
    font-family: narutoFont;
  src: url('http://www.fontsaddict.com/download/ninja-naruto.ttf');
  format('truetype')
}


In Html:
<a "font-size: 400%; font-family: narutoFont; text-shadow: 2px 2px #FF0000;">

bmbmjmdm
Forumember

Posts : 52
Reputation : 1
Language : English

Back to top Go down

Re: @font-family doesn't seem to be working properly in css?

Post by Guest on July 28th 2015, 5:42 am

Hey, try this.

Code:
.font-face {
    font-family: narutoFont; !important;
  src: url(http://www.fontsaddict.com/download/ninja-naruto.ttf);
  format(truetype);
}

Guest
Guest


Back to top Go down

Re: @font-family doesn't seem to be working properly in css?

Post by bmbmjmdm on July 28th 2015, 5:55 am

Hi, thanks for the reply. Unfortunately it's still not working :/

bmbmjmdm
Forumember

Posts : 52
Reputation : 1
Language : English

Back to top Go down

Re: @font-family doesn't seem to be working properly in css?

Post by Guest on July 28th 2015, 5:57 am

@bmbmjmdm wrote:Hi, thanks for the reply. Unfortunately it's still not working :/

Okay, try this.

Code:
@font-face {
    font-family: narutoFont !important;
  src: url(http://www.fontsaddict.com/download/ninja-naruto.ttf);
  format(truetype)
}

Guest
Guest


Back to top Go down

Re: @font-family doesn't seem to be working properly in css?

Post by bmbmjmdm on July 28th 2015, 6:00 am

Still nothing I'm afraid Sad

bmbmjmdm
Forumember

Posts : 52
Reputation : 1
Language : English

Back to top Go down

Re: @font-family doesn't seem to be working properly in css?

Post by bmbmjmdm on July 30th 2015, 5:47 am

bump~

bmbmjmdm
Forumember

Posts : 52
Reputation : 1
Language : English

Back to top Go down

Re: @font-family doesn't seem to be working properly in css?

Post by bmbmjmdm on August 1st 2015, 10:50 am

bumpbump

bmbmjmdm
Forumember

Posts : 52
Reputation : 1
Language : English

Back to top Go down

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum