In this solution, I'll start with an interface design for a simple web site. It has a header bar, a menu bar, and a content area as shown in the example here.

I'll paste in the flower images that I blended together earlier in this Web site design chapter. As you can see in the example below, the images are bigger than the header area. I want them to be contained within the header region, but I still want to be able to move them around. The solution may seem simple at first—a layer mask on each layer will do the trick. But what if I decide to change the header height later? I'll have to modify all the masks.

Home | About Us | Services | Contact

Lorem ipsum dolor sit amet, consectetuer adipiscinq elit. Nam acuiis lacus at lacus. Sed ao dolor. Morbi tristique eras nisi lorem, placerat non, consectetuer vel, mattis ut, iectus Aliquam vitae nibh. Donee at nibh quis dui feoilisis lobortis Nullam neque. Aliquam lacus. Mauris ieo. Suspendisse nec ipsum ut masse tincid-unt rhoncus. Pheselius ac ante. Pellentesque et oroi at lorem interdum maie-suada. Suspendisse sit amet lacus id tortor commodo dictum, Suspendisse ve ieo. Duis eleifend purus in sapien.

Images for header area

Enter the clipping mask. First, your document must have a shape layer that contains the shape of the "masking" area. Put the layers you need to mask directly on top of this shape layer.

In the Layers palette, move the cursor to the boundary between the shape layer and the layer above it. Hold down the Alt key (Option on a Mac). The cursor will change into two overlapping circles, as shown in this example.

Holding the Alt (Option) key changes the cursor

Click once. The top layer will be clipped by the bottom layer. If you examine the Layers palette,

Holding the Alt (Option) key changes the cursor you'll notice that the thumbnail for the top layer now has a black arrow next to it, and our shape layer's name is underlined.

Clipping one of the layers with another

Now let's do the same with our second image. Move your mouse up to the edge of the next layer in the Layers palette, hold down Alt and click.

Both layers have now been clipped by the base layer, as shown in the example below.


Layers ' Channels ' PathsX. j

Normal v,|qpsaM te®5 |>

bock; □ > rr ii fl 111 r,; J




right flower


□ » fe-\ hflarlHt har


T | i rir^iMVrn tlolbrT^if^m...


T I Home ] About -Us 1 Sfervi...



a C. □ Jj ■%

Clipping another layer

Creating a clipping mask for multiple layers

You can move the individual layers around, and they will remain clipped by the shape of the base layer. The image below illustrates this point.

clippinggioup psd 100% flight flower . RGB/0)

clippinggioup psd 100% flight flower . RGB/0)

,l;orarn ipsumdplpr'sit arrietj ppnspctptuaradipispinp alit. Na \ idculii^ laiuv at iacus Spd;a'c..dpipr. Mprbi tfistiqup, eras nisi Iprem, plaperat npnt qpnspptptupr ■ -V e I j mattis ut, lactus. Aliquant yitaa riib'Fr. Dcifipp at nib." quis dui fapilisis pbprtis. Nullam naqup. AJiquam la'qus, Mauris lep. Sus^pndtssp tiec psitfn ut mass a tincid-upt rttqnpus. Pfrisallus ap antg.ppllantpsqup at prpi at.lprpm intprdurn rriaie-suada. ^t^pendissa. sit ampt lapus d :;:)T:r .:cirij-Tcidq't;ii:::jrTi, spsppndisse ipo Oujs-elp'jfend.pufDs in isapipn.


Layers VjnannelsXEathsX. X^S

| Wormal v |op^ltyl ion'°i |

Loci;: □ J + a fill. 100°/, >


fj | left flower



i ight flowei'


□ ig^y


T | Lorem ipsum dolor sit am...

T | Home | About Us | Servi...



—• OJ _i jd

Moving a layer with a clipping mask

As a final flourish, I'm going to use the solution from "Fading an Image into the Background" to fade the right edge of the second flower into the background. Our final result is shown below.

Adding a layer mask
0 0

Post a comment