Google Pixel 2 Dimensions

5.0 INCH 5.74 x 2.74 x 0.31 INCH

Google Pixel 2 Resolution

1080x1920 PX ~ 441 Pixels Per Inch

Google Pixel 2 Viewport

411 x 731 PX ~ 170 Pixels Per Inch

Google Pixel 2 Density

2.6 xxhdpi 2.6x Retina Display

OS Details

Google Pixel 2 has been launched in October 2017.
Google Pixel 2 have Android 8.0 (Oreo)

Screen Dimensions

Google Pixel 2 have 5.0 inch screen which is ~ 67.9% of actual device size. Physical dimensions for Google Pixel 2 device is 5.74 x 2.74 x 0.31 INCH or ( 145.7 x 69.7 x 7.8 MM).

Displaying of Units are in this order "Height x Width x Thickness"

Screen Pixel Density and CSS Pixel Ratio

"Pixel" is smallest unit/element of any display.

The total number of pixels that fit into an inch is referred to as "Screen Density" or "Pixel Density" and it measured as "Pixels Per Inch".
Pixel Desnsity have limits to display Pixels Per Inch depends on different screen sizes. When number of pixels per inch increases than it's screen-size limit, the Display resolution will increase but actual device width/height in pixels remain same. Actual device pixels are known as Device Independent Pixels or CSS Pixel Ratio.

Google Pixel 2 have ~ 441 pixel density and actual pixel density is about ~ 170 so it have 2.6 xxhdpi display pixel density.

Screen Resolution and Viewport

The sum of pixels which are displaying on a device is called as "Screen Resolution". and sum of actual pixels of any device is reffered to as "Viewport".

Google Pixel 2 have 5.0" physical screen size and its resolution is about 1080x1920 Pixels with approximately 441 PPI pixel density. Google Pixel 2 has viewport size 411 x 731 Pixels and its pixel ratio is about 3.

For better understanding screen actual sizes, viewport sizes, display resolution and about their density click here.

CSS Media Queries

Google Pixel 2 Media Queries (In terms of Mobile only)

@media only screen and (min-width: 411px) and (max-width: 767px) { /* Your Styles... */ }

Google Pixel 2 Min-Width Media Queries

@media only screen and (min-width: 411px) { /* Your Styles... */ }

Google Pixel 2 Min-Height Media Queries

@media only screen and (min-height: 731px) { /* Your Styles... */ }

Google Pixel 2 Landscape Media Queries

@media only screen and (min-width: 731px) and (orientation: landscape) { /* Your Styles... */ }

Google Pixel 2 Portrait Media Queries

@media only screen and (min-width: 411px) and (orientation: portrait) { /* Your Styles... */ }

Google Pixel 2 Device Width Media Queries

@media only screen and (min-device-width: 411px) and (orientation: portrait) { /* Your Styles... */ }
@media only screen and (min-device-width: 731px) and (orientation: landscape) { /* Your Styles... */ }

Google Pixel 2 Retina Media Queries

@media
  only screen and (-webkit-min-device-pixel-ratio: 2.6),
  only screen and (   min--moz-device-pixel-ratio: 2.6),
  only screen and (     -o-min-device-pixel-ratio: 2.6/1),
  only screen and (        min-device-pixel-ratio: 2.6),
  only screen and (                min-resolution: 441dpi),
  only screen and (                min-resolution: 2.6dppx) { 
    /* Retina styles here */
}
                                

Retina is actually based upon device pixel ratio. Devices mostly have 2x or 3x display so you can use general retina media queries to display high resolution content on all kind of devices. Retina 2x and Retina 3x media queries given below:

Retina 2x Media Query (for all 2x resolution supported devices)

@media
  only screen and (-webkit-min-device-pixel-ratio: 2),
  only screen and (   min--moz-device-pixel-ratio: 2),
  only screen and (     -o-min-device-pixel-ratio: 2/1),
  only screen and (        min-device-pixel-ratio: 2),
  only screen and (                min-resolution: 192dpi),
  only screen and (                min-resolution: 2dppx) { 
    /* Retina styles here */
}
                                

Retina 3x Media Query (for all 3x resolution supported devices)

@media
  only screen and (-webkit-min-device-pixel-ratio: 3),
  only screen and (   min--moz-device-pixel-ratio: 3),
  only screen and (     -o-min-device-pixel-ratio: 3/1),
  only screen and (        min-device-pixel-ratio: 3),
  only screen and (                min-resolution: 384dpi),
  only screen and (                min-resolution: 3dppx) { 
    /* Retina styles here */
}
                                

Summary

  • Launch Date October 2017
  • Android 8.0
  • Physical Screen Size 5.0 INCH
  • Resolution 1080x1920 PX
  • Viewport Size 411 x 731 PX
  • Pixel Density 441 PPI
  • Device-Independent Pixels 170 PPI
  • Pixel Ratio 2.6 xxhdpi
  • Width 1080 PX
  • Height 1920 PX
  • Device Width 411 PX
  • Device Height 731 PX
  • Dimensions 145.7 x 69.7 x 7.8 mm (5.74 x 2.74 x 0.31 in)
  • Weight 143 g - 5.04 oz

Disclaimer: Information collected from different top relevent websites. It is tried to keep the information correct.
If you find anything wrong email us info@yesviz.com