How one developer got around the iPhone X's website letterboxing

If you like to view websites in landscape mode on your iPhone and are planning on getting the iPhone X, you might notice some white bars pop up on the sides of your device when you're surfing the web on that phone in a couple of months. One developer has found a solution that other developers can use to keep their websites from showing these bars when visitors head to their sites.

From Stephen Radford:

The new iPhone X features a beautiful edge-to-edge display. Well, almost. There is the small issue of a notch at the top of the browser which doesn't cause an issue when viewing websites in portrait but by default does cause some issues in landscape.To accommodate the notch iOS 11 constrains websites within a "safe area" on the screen. On most websites this results in letterboxing on the left and the right.Thankfully there are two simple fixes that can be made to solve this letterboxing.

Radford suggests using background-color to force the bars to adopt the same color as your site if it uses a single solid color, rather than a gradient. If you use an image, gradient, or different colors across your site, you can use the new-to-iOS viewport-fit descriptor to have your site fill the whole screen of the iPhone X.

Developers will need to implement these solutions on their own, of course. We'll have to wait until the launch of the iPhone X in early November to see if anyone has utilized Radford's techniques.

Joseph Keller

Joseph Keller is the former Editor in Chief of iMore. An Apple user for almost 20 years, he spends his time learning the ins and outs of iOS and macOS, always finding ways of getting the most out of his iPhone, iPad, Apple Watch, and Mac.

Latest in iPhone X
Password Unlock Iphone X Hero
How to quickly disable Face ID and Touch ID on iPhone and iPad
Green Iphone 13 Iphone 13 Pro
How to use Face ID on iPhone and iPad Pro
Anker Wireless Charger
Best wireless charging pads for iPhone 2025
How to use Face ID on the iPhone X
Apple expands Face ID repair change to iPhone X
iPhone 13, 13 Pro, SE
Best iPhone for kids 2025
Waterproof Usb C Iphone
World's 'first waterproof USB-C iPhone X' sells for a disappointing $3,000
Latest in News
iMore Logo
One more thing… Goodbye from iMore
Jony Ive
Jony Ive’s OpenAI hardware device could be his next world-changing design
NEBULA Cosmos 4K SE with Apple TV
This new 4K projector is tempting me to replace my LG C2 TV, just so I can watch Slow Horses on a 200-inch display
VisionOS 2 app reorganization
visionOS 2 is the first major software update for Apple Vision Pro, and now it's available
macOS Sequoia
macOS Sequoia (version 15) is now available for your Mac with some big upgrades
watchOS 11
watchOS 11 is now rolling out to all Apple Watch users with the Series 6 or newer