By using this site you agree to the use of cookies.

Learn more

Share via:

The Pixel Unit

Pixels are used in webdesign as units of measurements to control dimensions and placement of elements.

Edited: 2017-02-08 02:01

A pixel is a single point on a display device, often used to control the dimension and position of elements on the screen.

For website layouts, a min-width and a max-width is often defined in pixels, while Media Queries, are used to control the behavior of elements in lower screen resolution.

Many developers use Ems for font sizes, even though pixels should no longer present much of a problem, given the zoom functionality in modern browsers.

Using media queries to control page layout in different window sizes effectively eliminates the need to create a separate mobile version of your website.