px

The px CSS unit specifies the length of the element in pixels.

1px = 2.54/96cm = 1/96in = 25.4/96mm = 1/16pc = 3/4pt = 101.6/96Q

Syntax

<number>px

Examples

CSS

JS

Internal

cm

in

mm

pc

pt

Q

External

World Wide Web Consortium (W3C)

Home Menu