Google Pixel 2 Dimensions
5.0 INCH 5.74 x 2.74 x 0.31 INCHGoogle Pixel 2 Resolution
1080x1920 PX ~ 441 Pixels Per InchGoogle Pixel 2 Viewport
412 x 732 PX ~ 168 Pixels Per InchGoogle Pixel 2 Density
2.625 xxhdpi 2.625x Retina DisplayOS Details
Google Pixel 2 has been launched in
October 2017.
Google Pixel 2 have
Android 8.0 (Oreo)
Screen Dimensions
Google Pixel 2 screen size is 5.0 inch with ~ 67.9% body ratio 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 resolution is 1080x1920 PX with ~ 441 pixel desnsity.
Google Pixel 2 viewport size is 412 x 732 PX with ~ 168 actual pixel density, which means it have 2.625 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 412 x 732 Pixels and its pixel ratio is about 2.625.
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: 412px) and (max-width: 767px) { /* Your Styles... */ }
Google Pixel 2 Min-Width Media Queries
@media only screen and (min-width: 412px) { /* Your Styles... */ }
Google Pixel 2 Min-Height Media Queries
@media only screen and (min-height: 732px) { /* Your Styles... */ }
Google Pixel 2 Landscape Media Queries
@media only screen and (min-width: 732px) and (orientation: landscape) { /* Your Styles... */ }
Google Pixel 2 Portrait Media Queries
@media only screen and (min-width: 412px) and (orientation: portrait) { /* Your Styles... */ }
Google Pixel 2 Device Width Media Queries
@media only screen and (min-device-width: 412px) and (orientation: portrait) { /* Your Styles... */ }
@media only screen and (min-device-width: 732px) and (orientation: landscape) { /* Your Styles... */ }
Google Pixel 2 Retina Media Queries
@media
only screen and (-webkit-min-device-pixel-ratio: 2.625),
only screen and ( min--moz-device-pixel-ratio: 2.625),
only screen and ( -o-min-device-pixel-ratio: 2.625/1),
only screen and ( min-device-pixel-ratio: 2.625),
only screen and ( min-resolution: 441dpi),
only screen and ( min-resolution: 2.625dppx) {
/* 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 */
}
Google Pixel 2 Specifications
Disclaimer: Information collected from different top relevent websites. It is tried to keep the information correct.
If you find anything wrong email us [email protected]