www.webdeveloper.com
Results 1 to 2 of 2

Thread: Css @font-face font-family

  1. #1
    Join Date
    May 2012
    Location
    Pakistan
    Posts
    3

    Css @font-face font-family

    Hello friends,
    i am facing some problem in css .
    when i use new font in css.
    then i use this element in css
    font name is that FontAwesomeRegular.but tell me this can i change the font-family name.
    @font-face {
    font-family: 'FontAwesomeRegular';
    src: url('fontawesome-webfont.ttf');}

    when i write like this then it's work.
    and when i change the font-family.

    @font-face {
    font-family: 'myfirstfont';
    src: url('fontawesome-webfont.ttf');}

    then this does not work. but in w3school.com this is working.
    now tell me this can i define another font name.
    http://www.w3schools.com/css3/css3_fonts.asp
    tell me i am waiting.

  2. #2
    Join Date
    Mar 2011
    Location
    The Pleiades
    Posts
    31
    Good morning,

    When you change the name in your CSS @font-face declaration, are you also changing to the same name when declaring it on certain elements.

    Kind regards,

    LC.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles