text in javascript

Discussion in 'JavaScript' started by ssaeed84, Jan 20, 2008.

  1. #1
    Hi every one

    I need to know the length in pixel for a given text with a given type-face and a given size
    can you help me please:)
     
    ssaeed84, Jan 20, 2008 IP
  2. webexpert

    webexpert Banned

    Messages:
    188
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    put that text in some span or div then calculate the width of span or div using javascript... hope makes sense...
     
    webexpert, Jan 22, 2008 IP