Media query tests - device-width and device-height

Back to index.

CSS3 spec | CSS4 spec

The device-width and device-height media queries use the width and height of the screen, in physical pixels.

device-width

Equality

The media query device-width should use the same value as screen.width; i.e. the width of the screen.

Units

Values

device-height

Equality

The media query device-height should use the same value as screen.height; i.e. the height of the screen.

Units

Values