Sub topic 1
Layer order: why position in the stack matters
Every clipping mask and every layer style you build in this tutorial depends on layer order. A clipping mask clips to the layer directly below it. A drop shadow lands on whatever sits underneath. An adjustment layer changes everything beneath it. This chapter builds the stacking model that the rest of the tutorial relies on.
Prerequisites
This chapter assumes you can already do the following:
- Find your way around the Photoshop interface: the Layers panel, the Tools panel, and the menu bar.
- Create, select, rename, and drag layers in the Layers panel.
- Tell pixel layers, shape layers, and type layers apart by their thumbnails.
- Change a layer's opacity and choose a blend mode, and describe in general terms what each does.
Shortcuts are given as Windows/Mac pairs, such as Ctrl/Cmd. Where Alt appears, Mac users press Option.
The stack is a compositing order
The Layers panel is a vertical list that Photoshop reads from the bottom up. The layer at the bottom is painted first, the next one is painted over it, and so on up to the top layer. What you see on the canvas is the result of that process, called the composite.
Each layer is combined with the result of everything beneath it. Three properties decide how a layer affects the composite:
- Pixels and transparency. Opaque pixels cover what is below. Transparent pixels let it show through.
- Opacity and blend mode. These set how much and in what way a layer's pixels mix with the pixels below.
- Layer type. A pixel, shape, or type layer contributes its own pixels. An adjustment layer contributes no pixels. It transforms the composite of everything below it.
The practical rule: a layer can only be influenced by layers below it, and it can only influence layers below it. A layer never changes anything above it.
In this stack the Curves layer brightens the photo and the shape, because both are below it. The type layer is above Curves, so it keeps its original color. If you drag the type layer below Curves, the type is brightened as well.
Moving layers up and down
You can reorder layers by dragging them in the Layers panel. A thin highlighted line shows where the layer will land. Keyboard shortcuts are faster and more precise:
| Action | Windows | Mac |
|---|---|---|
| Bring Forward (up one step) | Ctrl+] | Cmd+] |
| Send Backward (down one step) | Ctrl+[ | Cmd+[ |
| Bring to Front | Ctrl+Shift+] | Cmd+Shift+] |
| Send to Back | Ctrl+Shift+[ | Cmd+Shift+[ |
| Select the next layer up | Alt+] | Option+] |
| Select the next layer down | Alt+[ | Option+[ |
The same commands are in the Layer > Arrange menu.
Two edge cases come up often:
- The Background layer is locked in place. It has a lock icon and cannot be moved, and nothing can be sent below it. Send to Back puts a layer directly above it. To make the Background layer movable, Alt/Option-double-click it, or choose Layer > New > Layer from Background. It becomes an ordinary layer named Layer 0.
- Moving a layer into or out of a group changes its context. Dragging a layer onto a group's folder row, or between layers already inside the group, puts it in that group. Its position is then measured within the group, as explained below.
Opacity, blend modes, and position
A layer's blend mode is calculated against the pixels beneath it. Moving the layer changes what it is blended with, so the same blend mode can give a different result in a different position.
Suppose a texture layer is set to Multiply. Directly above a light photo it darkens the photo. Above a white Background layer alone it does almost nothing, because multiplying by white leaves the other color unchanged. The settings are the same in both cases. Only the content below differs.
This explains a common complaint: "I dragged the layer and the blend mode stopped working." The blend mode still works. It has new pixels to blend with. When a blend result surprises you, look at what is directly below the layer and what is above it.
Adjustment layers act on everything below
An adjustment layer (Curves, Hue/Saturation, Levels, and so on) has a layer mask but no pixels of its own. At its position in the stack, it takes the composite of all layers below and applies its correction.
That has two consequences:
- Put the adjustment layer at the top of the stack to correct the whole image.
- Put it lower, or inside a group, to correct only part of the stack. Layers above it stay untouched.
Many people reorder the stack just to protect one layer from an adjustment, and that works for small files. In larger documents, clipping an adjustment to a single layer is cleaner. The chapter "Limiting adjustment layers with clipping" covers that technique. It builds on the order rules here.
Groups change how the stack is calculated
A group is a folder in the Layers panel that holds several layers. For stacking purposes it behaves in one of two ways, depending on its blend mode.
- Pass Through is the default for groups. The group is transparent to blending, as if its layers were loose in the main stack. A blend mode or adjustment layer inside the group can still affect layers outside and below the group.
- Any other blend mode, such as Normal or Multiply. Photoshop first composites the group's contents on their own, as if the group were a single flattened layer. Then it blends that result with the layers below using the group's blend mode. Adjustment layers and blend modes inside the group affect only the layers inside it.
The second behavior is useful for isolation. If you place a Hue/Saturation adjustment at the top of a group set to Normal, it changes only what is in that group. If the group stays on Pass Through, the same adjustment also changes everything under the group.
Groups matter again later in the tutorial. The option Blend Clipped Layers as Group in the Layer Style dialog works on a similar principle, and the idea of a layer being composited first and blended second will carry over.
Layer styles and the stack
Layer styles are effects such as Drop Shadow, Stroke, and Gradient Overlay that you attach to a layer. The chapters on the Layer Style dialog cover them fully. For now, note two stacking facts:
- A style belongs to its layer and travels with it. If you move the layer, its shadow moves with it.
- A style is drawn at the layer's position in the stack. A Drop Shadow on a high layer falls across every layer beneath it. A shadow on a low layer can be hidden by opaque layers above it, which is a frequent cause of "my shadow disappeared."
Inside a single layer's style, effects also have a fixed internal order. Overlays (Color, Gradient, Pattern) draw over the layer's own pixels. Stroke and Inner Shadow draw over those, and Drop Shadow draws behind the layer. You cannot reorder effects inside one style. To get a different order, you move one effect to its own layer or use Layer > Layer Style > Create Layer, a technique covered in a later chapter.
Order matters for clipping masks
A clipping mask uses stacking order directly. The rule is short: a layer set to clip is clipped to the layer immediately below it. Photoshop decides which layer is the base by position, not by name or by selection. Three consequences follow:
- Reordering a clipped layer can change which layer is its base.
- If you insert a new layer between a base layer and a clipped layer, you may break the arrangement. The new layer is added to the group of clipped layers or ends up outside it, depending on where you drop it.
- A group of clipped layers always sits directly above its base layer. The base is the lowest layer in that group.
Chapters 2 and 3 cover how clipping is created and how the base layer controls the result. At this point, remember that order is the core of what a clipping mask does.
Habits that keep stacks manageable
A few habits prevent most order problems:
- Name layers that carry meaning. Names like "Base shape" and "Texture" show which layer is which when you look for a base layer later.
- Group related layers. Keep a subject and its supporting layers together in one folder, and set that group to Normal if its adjustments should not leak out.
- Keep global adjustments at the top and local ones near their targets. Color grading and sharpening usually belong at the top. A retouching curve for one object belongs next to that object.
- Use layer visibility to test. Hold Alt/Option and click a layer's eye icon to see only that layer. Click it again with the same modifier to restore the others. This helps you check whether a problem comes from that layer or from something around it.
- Check the thumbnail and the mask. An adjustment layer has a mask thumbnail. A black or partly gray mask limits its reach, which can look like a stacking problem when it is not.
Common stacking errors
| Symptom | Likely cause | Fix |
|---|---|---|
| A layer is on the canvas but invisible | An opaque layer sits above it | Move it up, or hide the layer above |
| A color correction changes too much | The adjustment layer is above layers you meant to protect | Move it below them, group the target, or clip it |
| A blend mode looks different after moving a layer | It now blends with different layers | Check what is directly below the layer |
| A shadow is missing | An opaque layer above covers it, or the shadow's own layer is too low | Raise the layer or check the layers above |
| An adjustment affects only some layers | It is inside a group set to Normal | Move it out of the group or set the group to Pass Through |
| A layer cannot go below another | Another layer is the locked Background layer | Convert the Background layer to a regular layer |
Exercise
A document has four layers, from top to bottom: a type layer, a Curves adjustment layer that darkens the image, a shape layer, and a Background photo. The type looks bright white. A teammate drags the type layer below the Curves layer. What happens to the type, and what would you do to darken the photo and shape but keep the type white afterward?
Show answer
Once the type layer is below Curves, the Curves adjustment also darkens the type, so the white type turns gray. To keep the type white, move the type layer back above the Curves layer. A layer can only be affected by adjustments that sit above it in the stack.
Exercise
You put a Hue/Saturation adjustment layer at the top of a group that holds three layers. It still changes the layers under the group. Why does this happen, and how do you stop it?
Show answer
The group is set to Pass Through, the default mode, so the adjustment layer acts as though it were in the main stack and affects everything below it, including layers outside the group. Setting the group's blend mode to Normal makes Photoshop composite the group first, so the adjustment affects only the layers inside it.