Font Style, Character Tracking and Anti-Aliasing in HTML

Discussion in 'JavaScript and AJAX' started by bananow, Oct 24, 2010.

  1. bananow

    bananow New Member

    Joined:
    Mar 24, 2010
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    0
    Hi everyone,
    I have a question concerning text formatting in HTML. I am a newbie in webdesign so I wanted to ask, if it is possible to somehow set the font style, character tracking and the anti-aliasing method in HTML or perphaps CSS. If so, how? I created my web design in Photoshop where it is possible to set these values, but I am not sure about HTML.
    Thank you in advance

    Tomas
     
  2. pein87

    pein87 Active Member

    Joined:
    Aug 6, 2010
    Messages:
    173
    Likes Received:
    47
    Trophy Points:
    28
    Occupation:
    Web Dev
    Location:
    Limbo
    for fonts use

    font-family: ariel;

    @font-face { font-family: ariel; src: url('http://font.com/font.ttf'); }

    You cant get the string length(number of characters in a string without using javascript.

    var textChar = document.getElementById('myDiv').innerHTML.length;

    not sure on the other part though.
     
  3. kumarpyasa

    kumarpyasa Banned

    Joined:
    Nov 19, 2010
    Messages:
    10
    Likes Received:
    2
    Trophy Points:
    0
    Occupation:
    seo
    Location:
    In Delhi
    Home Page:
    http://www.singaporetourpackage.com
    Hi dear
    for fonts use
    <font face="Monotype Corsiva" size="4" font color="red">kumar pyasa</font>
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice