iPhone 7: viewport, screen size, CSS pixel ratio, multi-browser compatibility (2024)

iPhone 7 is a phone powered by iOS OS and released by Apple on Friday, September 16, 2016.

Download the Blisk applicationto test iPhone 7's cross-browser compatibility and responsive design. This phone is ready to use alone or simultaneously with many other popular devices.

iPhone 7: viewport, screen size, CSS pixel ratio, multi-browser compatibility (1)

Table of contents:

  • Overview and dimensions
  • Key points for development and testing
  • CSS-mediaquery
  • Start the device in the Blisk application
  • Start the device from the command prompt or terminal
  • Specification (overview)

Overview and dimensions

iPhone 7 was released by Apple on Friday, September 16, 2016 and is powered by iOS OS. By default, the device comes with a web browser: Safari for iOS. The dimensions of the device are 67.1 x 138.3 x 7.1 millimeters (2.64 x 5.44 x 0.28 inches)1. The device weighs 138 g.

iPhone 7 has a Retina IPS LCD display with a 4.7-inch screen (60.9 cm)2, aspect ratio 16:9) and a screen-to-body ratio of approximately 65.6%. The display is a touchscreen, meaning it supports touch events: interactions with a finger or stylus.

1- The property is represented as width × height × thickness.

Screen size, viewport and pixel ratio

iPhone 7 has a 4.7-inch screen with a screen size (resolution): 750px × 1334px, 375px × 667px viewport1and a CSS pixel ratio of 2.

1- The property is represented as width × height.

Screen size (resolution)is the number of physical pixels on a screen.

Lookout postofViewport sizeis the number of software pixels (CSS pixels) present on a screen. Normally, viewport size is represented as viewport width in pixels to viewport height in pixels.

Device Pixel Ratio (DPR)ofCSS-pixelforholdis the ratio of physical pixels (screen size or resolution) to CSS pixels (viewport). Depending on the device specification, one CSS pixel can correspond to one or more physical pixels. Modern devices have screens with high pixel density, which results in the difference between screen size (resolution) and viewport.

Cv:
Screen size (resolution) = Viewport size x pixel ratio.
Viewport size = Screen size (resolution) / pixel ratio.
CSS Pixel Ratio = Screen Size (Resolution) / Viewport Size.

Key points for development and testing

Before you start web development or testing, make sure the web application supports a responsive viewport by using a viewport meta tag:

You can view this tag directly in the body of an HTML document on iPhone 7Bliss-app. If this viewport tag is missing, the web application will become unresponsive and the screen will flood, hiding the content from the users and creating a poor user experience.

The device form factor represents its primary orientation as portrait. Landscape orientation is also popular on the iPhone 7 and should be seriously considered when developing or testing web applications on any mobile phone.

You should also keep in mind that users will manipulate your web application on the iPhone 7 with a finger and stylus because this device has a touchscreen that supports touch events. It is important to remember that users can interact with multiple fingers (multi-touch) and gestures: single tap, multi-tap, swipe, pinch, stretch, zoom, etc. Users will most likely use gestures on small touch screens because of hassle-free interaction and good user experience.

CSS-mediaquery

Use the CSS media queries below to apply custom CSS properties to iPhone 7 and devices with the same displays:

iPhone 7 Media Query for my width:

iPhone 7 Media Query for Minimum Height:

iPhone 7 Media Query for landscape orientation:

iPhone 7 Media Query for Portrait Orientation:

iPhone 7 media query with unit pixel ratio:

Start the device in the Blisk application

iPhone 7 is ready to use in the Blisk app, where you can develop web applications and test compatibility between browsers, use this phone as a standalone device or simultaneously with other devices.Get started with Blisk...

  1. Download the latest version.
  2. Launch developer mode from the toolbar (screenshot below).
  3. Click on Device Manager (screenshot below).
  4. to electiPhone 7from the list.
  5. ClickLaunch Devices.

Start the device from the command prompt or terminal

You can launch iPhone 7 in the Blisk app from the Command Prompt (Windows) or Terminal (macOS or Linux) to develop web applications and test cross-browser compatibility on a standalone device or concurrently with other devices.Learn more...

  1. Download the latest version.
  2. Launch Developer Mode from the toolbar.
  3. Click on Menu:Unit set ➜ Part set.
  4. to electCommandoone clickFollowing.
  5. Copy the generated command.
  6. Launch the command prompt or terminal, paste the command and run it.

Specification (overview)

Publication dateFriday September 16, 2016
SellAppel
Type of devicetelephone
Operating systemiOS
ScreenRetina IPS-LCD, 60,9 cm2, 16:9, ~65.6% screen-to-body ratio
Screen size (resolution) Width750 pixels
Screen size (resolution) Height1334px
Viewport width375 pixels
View height667 pixels
CSS-pixelforhold2
Screen size4,7 inch
Pixels pr. tomme326 PPI
Dimensions (mm)67,1 mm× 138,3 mm× 7,1 mm
Dimensions (inches)2,64 inch x 5,44 inch x 0,28 inch
Weight unit138 gr
iPhone 7: viewport, screen size, CSS pixel ratio, multi-browser compatibility (2024)

FAQs

IPhone 7: viewport, screen size, CSS pixel ratio, multi-browser compatibility? ›

Screen size, Viewport & Pixel Ratio

What is the screen ratio of the iPhone 7? ›

A1778
Display
Size4.7 inches, 60.9 cm2 (~65.6% screen-to-body ratio)
Resolution750 x 1334 pixels, 16:9 ratio (~326 ppi density)
ProtectionIon-strengthened glass
3D Touch display & home button
1 more row

What is the viewport size of the iPhone browser? ›

The Safari browser on the iPhone uses a 980px wide viewport. This means any layout less than 980px wide, will appear zoomed out when viewed on the web. Add it to your mobile version and mobile landing pages. While our website is far from mobile friendly, defining the viewport has made it more accessible.

What is the width of the viewport on iPhone 7? ›

Viewport resolution (CSS rules)

For the Apple iPhone 7 it is : 375 pixels width. 667 pixels height ⚠️ the height is indicative because the Safari browser, Chrome, etc.

What is the screen size of an iPhone 7s? ›

As with prior models, iPhone 7 is available in two sizes: one with a 4.7 in (120 mm) screen, and a "Plus" variant with a 5.5 in (140 mm) screen. The displays have identical sizes and resolutions to iPhone 6S, but with a wider color gamut and increased brightness.

How do I change the aspect ratio on my iPhone 7? ›

Step by step guide
  1. Open camera app. (Image: © Future / Apple) To start, you need to open the Camera app. ...
  2. Tap arrow at the top of the screen. (Image: © Future / Apple) ...
  3. Select aspect ratio. (Image: © Future / Apple) ...
  4. Choose new aspect ratio. (Image: © Future / Apple)
Dec 24, 2023

What aspect ratio do iphones use? ›

, then tap 4:3 to choose between Square, 4:3, or 16:9 aspect ratios.

What is the pixel size of the iPhone viewport? ›

iPhone X, XS, and 11 Pro: Viewport size: 375 x 812 pixels Physical screen resolution: 1125 x 2436 pixels. iPhone XR and 11: Viewport size: 414 x 896 pixels Physical screen resolution: 828 x 1792 pixels. iPhone XS Max and 11 Pro Max: Viewport size: 414 x 896 pixels Physical screen resolution: 1242 x 2688 pixels.

What is viewport and pixel size? ›

The viewport is the size of the browser window, minus the scroll bars and toolbars. Browsers use “CSS pixels.” For many devices, such as those with retina screens, the viewport is smaller than the advertised device resolution. Below are the viewports and resolutions for popular devices.

What is viewport on iPhone? ›

Screen size (resolution) is the number of physical pixels present on a screen. Viewport or Viewport size is the number of software pixels (CSS pixels) present on a screen. Usually, viewport size displays as viewport width in pixels to viewport height in pixels.

What are the viewport sizes in CSS? ›

Viewport width ( vw ) is a relative unit of measurement used in CSS to define sizes and layouts on web pages. It represents a percentage of the width of the viewport or the visible area of the web browser. For example, if the width of the viewport (the browser window) is 1000px , then 1vw would be equal to 10px .

What is the size of the viewport in pixel 7? ›

Specification (Summary)
Release DateWednesday, October 12, 2022
Viewport Width412px
Viewport Height915px
CSS Pixel Ratio2.625
Display Size6.3-inch
10 more rows

What is the aspect ratio of the iPhone 7 Plus? ›

Below a list of detailed specifications of Apple iPhone 7 Plus screen:
TypeIPS LCD
Size (mm/in)D (139.7 mm), H (122 mm), W (68 mm) H (4.8 in), W (2.7 in)
Aspect ratio16:9
Pixels Per Inch (PPI)401
Color depth24 – bit
9 more rows
Sep 7, 2016

Is iPhone 7 and 8 the same screen size? ›

iPhone 7 vs iPhone 8: Similar phone, different brain

With similar dimensions and identical 4.7-inch widescreen LCD displays, the iPhone 8 and iPhone 7 don't appear all that different at first.

Which iPhone is same size as 7? ›

The iPhone 6, 7, 8, and SE (2020) are the same size.

Is iPhone 7 and 7 Plus same size? ›

The iPhone 7 has a 4.7-inch retina display and single-lens camera, whereas the iPhone 7 Plus has a 5.5-inch retina display and dual-lens camera system.

Is iPhone 7 screen same as 8? ›

Although the screens may appear to be similar in size and shape, they use different connectors and components, so their screens are not compatible with each other. If you need to replace a broken screen on your iPhone, it's important to use the correct replacement part for your specific model.

Do iPhone 7 and 8 have the same screen size? ›

Both the iPhone 7 and iPhone 8 have a 4.7 inch screen.

Top Articles
Latest Posts
Article information

Author: Otha Schamberger

Last Updated:

Views: 6229

Rating: 4.4 / 5 (55 voted)

Reviews: 86% of readers found this page helpful

Author information

Name: Otha Schamberger

Birthday: 1999-08-15

Address: Suite 490 606 Hammes Ferry, Carterhaven, IL 62290

Phone: +8557035444877

Job: Forward IT Agent

Hobby: Fishing, Flying, Jewelry making, Digital arts, Sand art, Parkour, tabletop games

Introduction: My name is Otha Schamberger, I am a vast, good, healthy, cheerful, energetic, gorgeous, magnificent person who loves writing and wants to share my knowledge and understanding with you.