Sub topic 5
Composition basics: subject, thirds, and space
This chapter covers the composition of a photo before you crop it or place it on a page. It assumes you know the basics of HTML and CSS and have seen responsive layouts and breakpoints. You do not need photography experience. Composition decides what a viewer sees first, where their eye travels, and how much of the photo survives when your layout crops it.
Why composition matters on the web
Composition is how the elements inside a frame are arranged. In print, a photo keeps one shape. On the web, the same photo may appear in a wide hero banner, a square card, and a tall mobile header. Each of those shapes crops the photo differently.
A photo with a strong, clear composition survives cropping. A photo with a weak one falls apart when the frame changes. You judge composition at selection time because it is much cheaper than discovering the problem after the layout is built.
Three ideas do most of the work: a clear subject, a sensible placement of that subject, and deliberate empty space.
Start with one subject
The subject is the thing the photo is about. A good web photo has one main subject that a viewer can name in a second. "A baker lifting a loaf from an oven" is a subject. "A kitchen with several people and equipment" is a scene with no clear subject.
Test a candidate photo with a quick check:
- Shrink it to roughly thumbnail size, or squint at it.
- Ask what you still notice.
- Ask whether that matches what the page needs the photo to say.
If the thing you notice is a bright window, a stray bag, or a distracting sign, the photo has competing subjects. Cropping can sometimes remove them. Often it cannot, because the distraction sits close to the subject.
Ways a subject stands out:
- Contrast: it is lighter, darker, or more saturated than its surroundings.
- Sharpness: it is in focus while the background is blurred.
- Size: it fills a meaningful part of the frame.
- Isolation: few other objects compete with it.
- Direction: lines, gazes, or motion point toward it.
A subject does not need all five. Two or three are usually enough.
The rule of thirds
The rule of thirds is a guideline. Imagine two vertical lines and two horizontal lines that divide the frame into nine equal parts. The four points where the lines cross are called power points. Placing the subject near one of them usually looks more natural than centering it.
For a portrait, put the eyes along the upper horizontal line. For a landscape, put the horizon on the upper or lower line instead of the middle. A horizon at the exact center splits the image into two equal halves, and neither half leads.
Centering is not wrong. A symmetrical product shot or a logo-like object can look strong in the middle. Use thirds when the photo has a person, an animal, or an action that points in a direction. Treat it as a starting point and not a law.
Why thirds helps web layouts specifically
The thirds position gives you a predictable place to protect. If you know the subject sits near the left-third line, you know which part of the image must stay visible when the crop changes. The CSS you will meet in a later chapter, object-position, takes a position like 30% 40%. That value is in effect a thirds-style coordinate that points the crop toward the subject.
Leave space: headroom, lead room, and negative space
Empty areas of a photo are not wasted. They give the subject room and give the layout room for text.
Headroom
Headroom is the gap between the top of a person's head and the top edge of the frame. Too little looks cramped. Too much makes the subject sink. A small gap is usually right. If a layout crop will trim the top, the head can be cut off, so check how much margin the original gives you.
Lead room
Lead room, also called looking room, is the space in front of a subject. If a person looks right or a car drives right, leave space on the right. A subject placed against the edge it faces feels trapped, and viewers read it as a mistake.
Lead room has a layout consequence. If you mirror an image to fit a design, the subject now faces the other way. That is a technical change that can also change meaning, for example if the photo contains text or a product with a fixed side. Avoid flipping photos without checking.
Negative space
Negative space is the quiet area around the subject, such as sky, a plain wall, or a blurred background. It does three jobs:
- It makes the subject easier to see.
- It gives the eye a place to rest.
- It can hold overlaid headlines, which a later chapter treats in detail.
A photo with generous negative space is flexible. You can crop in tighter for a card and keep the full frame for a banner. A photo packed edge to edge has no such room, so every crop removes something that matters.
Comparing compositions
The table summarizes what to look for when you review a candidate.
| Property | Strong for the web | Risky for the web |
|---|---|---|
| Subject | One clear subject, easy to name | Several competing subjects |
| Placement | Near a power point or deliberately centered | Pushed against an edge |
| Headroom | Small, comfortable margin | Head touches or crosses the edge |
| Lead room | Space in the direction the subject faces | Subject faces the nearest edge |
| Negative space | Quiet area on at least one side | Detail fills the entire frame |
| Background | Simple or blurred | Busy, with bright spots near the subject |
Composition under cropping
Think about how one photo behaves in three common frames. Suppose the subject sits near the left-third line, with open space to the right.
- Wide banner (16:9 or wider): the sides are kept and the top and bottom are trimmed. The subject survives if the vertical margin is generous.
- Square card (1:1): the sides are trimmed. If the subject sits on the left third, a center crop can cut into it.
- Tall mobile header (4:5 or taller): a narrow strip of the width remains. Only a very tightly composed subject fits.
This is the central reason to look at composition before cropping. A photo whose subject is far from the center is fragile under a center crop. Aspect ratios and the crop methods follow in the next chapters.
Checking composition in practice
You can test the safe region of a photo without any special tools. Draw it on a copy, or overlay guides in the browser while you design.
The following page draws a thirds grid over any image so you can see where the subject sits. Save it as an HTML file and put a photo named photo.jpg beside it.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Thirds grid check</title>
<style>
.frame {
position: relative;
max-width: 640px;
}
.frame img {
display: block;
width: 100%;
height: auto;
}
.frame::after {
content: "";
position: absolute;
inset: 0;
background:
linear-gradient(to right, transparent calc(33.333% - 1px), rgba(255,255,255,.8) 33.333%, transparent calc(33.333% + 1px)),
linear-gradient(to right, transparent calc(66.666% - 1px), rgba(255,255,255,.8) 66.666%, transparent calc(66.666% + 1px)),
linear-gradient(to bottom, transparent calc(33.333% - 1px), rgba(255,255,255,.8) 33.333%, transparent calc(33.333% + 1px)),
linear-gradient(to bottom, transparent calc(66.666% - 1px), rgba(255,255,255,.8) 66.666%, transparent calc(66.666% + 1px));
pointer-events: none;
}
</style>
</head>
<body>
<div class="frame">
<img src="photo.jpg" width="640" height="427" alt="Photo being checked against a thirds grid">
</div>
</body>
</html>Open the page and note where the subject falls. Then change the .frame width and height ratio, or apply object-fit: cover in a test, and see what the crop removes. Set the width and height attributes to your photo's real dimensions.
Common mistakes
- Centering everything out of habit. This makes layouts look static. Use it on purpose.
- Ignoring the edges. A stray hand, a cut-off object, or a bright sliver at the border draws the eye away.
- Tight framing with no margin. The photo works at one size only, and any crop damages it.
- Choosing by the thumbnail in the asset library. A photo that looks fine small can have a weak subject at full size, and the reverse also happens.
- Forgetting the text. If a headline will sit on the image, you need negative space where the text goes.
Key points
- Pick photos with one nameable subject.
- Place the subject near a power point unless symmetry is the goal.
- Leave headroom, lead room, and negative space.
- Judge a photo by how it holds up in several crops, not only in the original frame.
Exercise
A photo shows a cyclist on the left third of the frame, riding toward the right, with open road on the right and little sky above the helmet. You must use it in a square card and a wide banner. Which composition problem is most likely to appear, and in which crop?
Show answer
The most likely problem is the tight headroom, which shows up in the wide banner, where the top and bottom are trimmed and the helmet can be cut off. The square card also risks a center crop trimming the cyclist on the left third, so it needs its crop shifted toward the subject. The open space on the right is good lead room and should be kept. A looser original, or a separate crop for each frame, would solve both.
Exercise
Name the three kinds of empty space discussed in this chapter and give one purpose of each.
Show answer
Headroom is the gap above a person's head and keeps the subject from looking cramped. Lead room is the space in front of the direction a subject faces and keeps it from feeling trapped. Negative space is the quiet area around the subject and can hold overlaid text or give the eye a place to rest.