• Shaarli
  • Tag cloud
  • Picture wall
  • Daily
  • RSS
  • Login
4418 shaares
Filters

Using safe-area-inset to build mobile-safe layouts | Polypane

QRCode

Modern phones are not simple rectangles. They have rounded corners, camera cutouts, dynamic islands, and home indicators that double as gesture areas.

Browsers by default will prevent your site from being obscured by the notch or home indicator, so your content will be safe without any special handling. That does come with a downside, which is that the browser will give you a smaller viewport to reserve space:

https://polypane.app/blog/using-safe-area-inset-to-build-mobile-safe-layouts/
June 8, 2026 at 1:43:10 PM EDT *
mobile webdesign
FILLER
Shaarli · The personal, minimalist, super fast, database-free, bookmarking service by the Shaarli community · Documentation
Fold Fold all Expand Expand all Are you sure you want to delete this link? Are you sure you want to delete this tag? The personal, minimalist, super fast, database-free, bookmarking service by the Shaarli community