Samsung J4 Dimensions

5.5 INCH 5.97 x 3.04 x 0.32 INCH

Samsung J4 Resolution

720 x 1280 PX ~ 267 Pixels Per Inch

Samsung J4 Viewport

360 x 640 PX ~ 134 Pixels Per Inch

Samsung J4 Density

2 xhdpi 2x Retina Display

OS Details

Samsung Galaxy J4 has been launched in May 2018.
Samsung Galaxy J4 have Android 8.0 (Oreo),

Screen Dimensions

Samsung Galaxy J4 screen size is 5.5 inch with ~ 71.2% body ratio of actual device size. Physical dimensions for Samsung Galaxy J4 device is 5.97 x 3.04 x 0.32 INCH or ( 151.7 x 77.2 x 8.1 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.


Samsung Galaxy J4 resolution is 720 x 1280 PX with ~ 267 pixel desnsity.
Samsung Galaxy J4 viewport size is 360 x 640 PX with ~ 134 actual pixel density, which means it have 2 xhdpi 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".

Samsung Galaxy J4 have 5.5" physical screen size and its resolution is about 720 x 1280 Pixels with approximately 267 PPI pixel density. Samsung Galaxy J4 has viewport size 360 x 640 Pixels and its pixel ratio is about 2.

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

CSS Media Queries

Samsung Galaxy J4 Media Queries (In terms of Mobile only)

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

Samsung Galaxy J4 Min-Width Media Queries

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

Samsung Galaxy J4 Min-Height Media Queries

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

Samsung Galaxy J4 Landscape Media Queries

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

Samsung Galaxy J4 Portrait Media Queries

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

Samsung Galaxy J4 Device Width Media Queries

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

Samsung Galaxy J4 Retina Media Queries

@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: 267dpi),
  only screen and (                min-resolution: 2dppx) { 
    /* 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 */
}
                                

Samsung Galaxy J4 Specifications

  • Launch Date May 2018
  • Android 8.0
  • Physical Screen Size 5.5 INCH
  • Resolution 720 x 1280 PX
  • Viewport Size 360 x 640 PX
  • Pixel Density 267 PPI
  • Device-Independent Pixels 134 PPI
  • Pixel Ratio 2 xhdpi
  • Width 720 PX
  • Height 1280 PX
  • Device Width 360 PX
  • Device Height 640 PX
  • Dimensions 151.7 x 77.2 x 8.1 mm (5.97 x 3.04 x 0.32 in)
  • Weight 175 g - 6.17 oz

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]