Category: Websites and UX

Mobile Hero Text Overlaps the Person in the Photo

Read this guide in Polish

Desktop looks good, but after lowering the screen, the header lands on the face or disappears outside the frame.

Where's the problem coming from?

The pixel-based position of text and one photo for many proportions create a collision with a narrower screen.

What to do step by step?

1. Select the area of the image that cannot be obscured, and check the frame with several ratios.

2 . Apply another composition on small screens: text next to or under the picture instead of on it.

3 . If you use a cap, set a responsive max-with, spacing, and a safe area for your face.

4 . At object-fit:cover control object-position and natural proportions.

5 . Test 320–430 px, rotation and larger text settings.

Correction test and important trap

The face and all the headlines are visible, nothing overlaps, and the photo remains unchanged.

Moving the absolute top by several pixels can work on one phone model, but not on others.