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/






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.

    ptpxText in ptText in px
    11
    abcdefgABCDEFG
    abcdefgABCDEFG
    23
    abcdefgABCDEFG
    abcdefgABCDEFG
    34
    abcdefgABCDEFG
    abcdefgABCDEFG
    45
    abcdefgABCDEFG
    abcdefgABCDEFG
    57
    abcdefgABCDEFG
    abcdefgABCDEFG
    68
    abcdefgABCDEFG
    abcdefgABCDEFG
    79
    abcdefgABCDEFG
    abcdefgABCDEFG
    811
    abcdefgABCDEFG
    abcdefgABCDEFG
    912
    abcdefgABCDEFG
    abcdefgABCDEFG
    1013
    abcdefgABCDEFG
    abcdefgABCDEFG
    1115
    abcdefgABCDEFG
    abcdefgABCDEFG
    1216
    abcdefgABCDEFG
    abcdefgABCDEFG
    1317
    abcdefgABCDEFG
    abcdefgABCDEFG
    1419
    abcdefgABCDEFG
    abcdefgABCDEFG
    1520
    abcdefgABCDEFG
    abcdefgABCDEFG
    1621
    abcdefgABCDEFG
    abcdefgABCDEFG


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

    pxptText in pxText in pt
    11
    abcdefgABCDEFG
    abcdefgABCDEFG
    22
    abcdefgABCDEFG
    abcdefgABCDEFG
    32
    abcdefgABCDEFG
    abcdefgABCDEFG
    43
    abcdefgABCDEFG
    abcdefgABCDEFG
    54
    abcdefgABCDEFG
    abcdefgABCDEFG
    65
    abcdefgABCDEFG
    abcdefgABCDEFG
    75
    abcdefgABCDEFG
    abcdefgABCDEFG
    86
    abcdefgABCDEFG
    abcdefgABCDEFG
    97
    abcdefgABCDEFG
    abcdefgABCDEFG
    108
    abcdefgABCDEFG
    abcdefgABCDEFG
    118
    abcdefgABCDEFG
    abcdefgABCDEFG
    129
    abcdefgABCDEFG
    abcdefgABCDEFG
    1310
    abcdefgABCDEFG
    abcdefgABCDEFG
    1411
    abcdefgABCDEFG
    abcdefgABCDEFG
    1511
    abcdefgABCDEFG
    abcdefgABCDEFG
    1612
    abcdefgABCDEFG
    abcdefgABCDEFG