Skip to main content
CleanImg Online

Banner workshop

How to Crop an Image for a Website Banner Without Cutting Off the Subject

A banner is a responsive window, not a fixed photograph. Plan a safe zone, protect the focal point, and test how the crop behaves from wide desktop screens to narrow phones.

By Yassine El Mernissi · Last reviewed September 29, 2026

Website banner crop with safe zone
SAFE ZONE

Why banner subjects get cut off

Many banner containers use a fixed height and fill the available width. To avoid empty gaps, the browser enlarges the image until it covers the box, then trims whatever falls outside. The crop changes as the viewport changes.

Problems appear when the face or product sits near an edge, when text is baked into the image, or when the original composition has no spare background around the subject.

Five-step crop plan

01

Measure the banner container and note desktop/mobile ratios.

02

Mark the subject’s face, product, or action as non-negotiable.

03

Place that focal point inside the central safe zone.

04

Leave clean negative space for live HTML text and buttons.

05

Preview at multiple widths before exporting.

Subject positioning options for website banners

Position deliberately

Use direction and negative space

If a person looks to the right, placing them on the left often gives their gaze room to travel. Put the headline in the open area, not over the face. For a product, keep the label readable and avoid placing important edges directly against the crop boundary.

When CSS uses object-fit: cover, adjust object-position to favor the subject. A value such as 70% center can retain a subject positioned toward the right.

Desktop and mobile may need different crops

Desktop and mobile banner crop comparison

A panoramic desktop banner can become unusable on a phone. If the subject shrinks too much or disappears, create a portrait or square mobile crop and deliver it through the HTML picture element.

Keep headlines as HTML rather than embedding them inside the pixels. Live text remains sharper, accessible, searchable, and easier to reposition on small screens.

Pre-publish check

  • Subject visible at 320px, tablet, laptop, and wide desktop.
  • No essential detail in the outer 15–20% of the frame.
  • Headline contrast remains readable over the image.
  • Export dimensions match the largest real display size.
  • File weight is optimized after the final crop.

Measure the container before touching the crop

Open the page at several viewport widths and record the banner’s visible width and height. Do not assume the uploaded file’s dimensions describe the on-screen ratio: themes often impose a fixed height, add inner padding, or change the hero layout at a breakpoint.

If the desktop container is roughly 1440×520, its shape is about 2.77:1. A 16:9 photograph placed inside it will lose a meaningful strip from the top and bottom when set to cover. That crop is predictable. Mark it before deciding where the face, product, hands, and horizon belong.

Useful rule: the subject’s critical area should fit inside the narrowest crop expected across the site. Decorative sky, wall, table, or landscape can occupy the sacrificial edges.

Build a safe-zone overlay

Create guides inside the image editor rather than guessing. Start with the final banner ratio. Add a central rectangle representing the mobile crop, then add a second inset for text and controls. Place eyes, labels, hands, and other essential information inside these guides.

Outer area

May disappear on narrow screens. Use it for scenery, texture, or nonessential continuation.

Subject zone

Protect the meaningful part of the photograph from routine responsive cropping.

Text zone

Keep headings and buttons clear of faces, busy texture, and low-contrast regions.

Four failures seen in real banners

1. The subject is centered in the source, not in the crop

The original photograph may contain generous space above and below. Once the hero becomes panoramic, the subject’s head can touch the top edge or disappear. Reposition the image within the container or prepare a wider source composition.

2. Text is baked into the pixels

Mobile cropping removes part of the sentence, while scaling makes small type soft. Keep marketing copy, buttons, and navigation as HTML. The image should carry the scene, not the interface.

3. The banner is tested only on one laptop

A crop can look balanced at 1366 pixels and fail on a wide monitor, tablet, or narrow phone. Test at the theme’s actual breakpoints and drag the browser width between them; awkward intermediate states are easy to miss.

4. A portrait source is forced into a panoramic slot

There may be no valid crop. Choose another photograph, extend the background carefully, or use a designed split layout where the image occupies one side instead of being sliced across the full viewport.

CSS behavior in plain language

object-fit: cover fills the box and permits cropping. object-fit: contain shows the complete image but may leave empty space. object-position tells the browser which region to protect when cover trims the rest. Background images use the related controls background-size: cover and background-position.

For meaningful editorial images, an HTML image with descriptive alternative text is usually clearer for accessibility. Purely decorative hero backgrounds can use an empty alt attribute or CSS background, provided the page does not rely on the image to communicate essential information.

Build the banner file

Crop a separate copy for each delivery size. Use the aspect-ratio guide to choose desktop and mobile frames, then resize each crop without stretching the subject.

Editorial note

Checked against primary references

This guide was written and reviewed by Yassine El Mernissi for CleanImg Online. Last reviewed: September 29, 2026.