Menu

Your hero banner looks fine. Now open it on an ultrawide screen.
📰

Your hero banner looks fine. Now open it on an ultrawide screen.

DEV Community: css·Karen Molina·6 days ago
#rF3jm3Qc
#devtocss#devto#dev#screen#banner
Reading 0:00
15s threshold

While researching a UX case study on a Mexican mobile carrier's website, I widened my browser window and watched the homepage disappear behind its own banner.

The banner was an image stretched to 100% of the width. On my screen it took 44% of the first view . Add the header bars, and the first product started at 60% of the screen. Plans, prices and the way to your account were all below the fold.

It looked fine on the laptop it was probably designed on. It was a problem on everything wider.

The math

A full-width image with a fixed aspect ratio has a height that depends only on the width:

height = viewport width ÷ aspect ratio

Enter fullscreen mode

Exit fullscreen mode

That banner had a ratio of about 3.7 to 1. So:

Screen Banner height Share of the visible height

1440 × 900 laptop ~390 px ~45%

2560 × 1080 (21:9) ~690 px ~70%

3440 × 1440 (21:9) ~930 px ~70%

5120 × 1440 (32:9) ~1380 px more than the whole screen

The wider the screen, the less of your page people see.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.