Cascading Style Sheet Quick Guide

 
 
This guide contains information how to create Cascading Style Sheets (CSS).

More information about CSS can be found at: http://www.w3.org/Style/CSS/

rss feed






Convert px pt font size.




Procedure
  1. In the table below you can find the formula.

    Formula
    px = pt / 0.75
    [px = pt * (0.35146/25.4) * 96)]

    If the decimal value is 0.5 or greater, round up.
    If the decimal value is lower than 0.5, round down.

    The formula is based on a browser 96 dots per inch (dpi).

    See also the unit converter.

  2. In the table below you can find the pt font size and its corresponding px size.

    pt px Text in pt Text in px
    1 1
    abcdefgABCDEFG
    abcdefgABCDEFG
    2 3
    abcdefgABCDEFG
    abcdefgABCDEFG
    3 4
    abcdefgABCDEFG
    abcdefgABCDEFG
    4 5
    abcdefgABCDEFG
    abcdefgABCDEFG
    5 7
    abcdefgABCDEFG
    abcdefgABCDEFG
    6 8
    abcdefgABCDEFG
    abcdefgABCDEFG
    7 9
    abcdefgABCDEFG
    abcdefgABCDEFG
    8 11
    abcdefgABCDEFG
    abcdefgABCDEFG
    9 12
    abcdefgABCDEFG
    abcdefgABCDEFG
    10 13
    abcdefgABCDEFG
    abcdefgABCDEFG
    11 15
    abcdefgABCDEFG
    abcdefgABCDEFG
    12 16
    abcdefgABCDEFG
    abcdefgABCDEFG
    13 17
    abcdefgABCDEFG
    abcdefgABCDEFG
    14 19
    abcdefgABCDEFG
    abcdefgABCDEFG
    15 20
    abcdefgABCDEFG
    abcdefgABCDEFG
    16 21
    abcdefgABCDEFG
    abcdefgABCDEFG


  3. In the table below you can find the px font size and its corresponding pt size.

    px pt Text in px Text in pt
    1 1
    abcdefgABCDEFG
    abcdefgABCDEFG
    2 2
    abcdefgABCDEFG
    abcdefgABCDEFG
    3 2
    abcdefgABCDEFG
    abcdefgABCDEFG
    4 3
    abcdefgABCDEFG
    abcdefgABCDEFG
    5 4
    abcdefgABCDEFG
    abcdefgABCDEFG
    6 5
    abcdefgABCDEFG
    abcdefgABCDEFG
    7 5
    abcdefgABCDEFG
    abcdefgABCDEFG
    8 6
    abcdefgABCDEFG
    abcdefgABCDEFG
    9 7
    abcdefgABCDEFG
    abcdefgABCDEFG
    10 8
    abcdefgABCDEFG
    abcdefgABCDEFG
    11 8
    abcdefgABCDEFG
    abcdefgABCDEFG
    12 9
    abcdefgABCDEFG
    abcdefgABCDEFG
    13 10
    abcdefgABCDEFG
    abcdefgABCDEFG
    14 11
    abcdefgABCDEFG
    abcdefgABCDEFG
    15 11
    abcdefgABCDEFG
    abcdefgABCDEFG
    16 12
    abcdefgABCDEFG
    abcdefgABCDEFG