Older iPads used to have a home button:

enter image description here

Newer iPads don't have it. They have a line on the screen you're supposed to swipe up to get to the home screen:

enter image description here

Now if an app has a row of links or buttons at the bottom of the screen, it has to leave extra space for that line on the screen.

How are people handling this? Am I supposed to do device sniffing to figure out whether to leave that extra space for that line? I thought device sniffing was deprecated.

1 Answer 1


Mobile devices feature complex screen layouts, with camera insets, rounded screens, and hovering navigation elements. Web applications cannot query the exact geometry of these features. However, CSS provides a “safe area inset” environment variable that indicates how much padding you must add to get an unobstructed rectangular content region, and is therefore suggested by Apple for websites that target modern iOS devices.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.