Using the slice tool to create slices

How To Render Cars In Photoshop

Learn Photo Editing

Get Instant Access

Now that you've had a taste of how slices work, you'll start making changes to the sample project for this lesson. Using the slice tool, you'll define four user slices for buttons in the banner.

1 Choose File > Open, and open the file 15Start.psd from the Lessons/Lesson15/15Start folder.

If a notice appears asking whether you want to update the text layers for vector-based output, click Update.

The lesson file includes blue horizontal and vertical guide lines. You'll use the guides and the snap-to commands when you draw marquees, so that they are tightly aligned.

2 Choose View > Show > and make sure that both Guides and Slices are selected (checked).

3 Choose View > Snap To > Guides, and then choose View > Snap To > Slices to select (place checkmarks on) both of these commands.

4 Select the slice tool ( ), and draw a marquee around the rectangular area containing the word designs.

5 One at a time, draw slice marquees around each of the other words in the same row: around the words structures, art, and contact to create slices for three more buttons.

Make sure that there are no gaps between the slices, because gaps would become auto slices. (If necessary, use the zoom tool ( 0 to get a closer view, and then double-click the zoom tool to return to 100%.)

You can change the way the pointer appears on-screen for the slice tool by changing your Photoshop preferences. To change the slice tool's standard pointer ( ■ ) to the precise pointer (-]-), choose Edit > Preferences > Display & Cursors (Windows, Mac OS 9) or Photoshop > Preferences > Display & Cursors (Mac OS 10), select Precise for Other Cursors, and click OK.

If you need to resize a slice, select the slice select tool (v ■) hidden behind the slice tool, select the slice, and drag the selection handles.

6 Choose File > Save to save your work. Setting options for slices in Photoshop

Before optimizing slices as Web images, you can set options for them, such as naming the slices or assigning URL links to them. The names you assign to the slices determine the filenames of the optimized images.

For the four user slices that you defined earlier, you'll name them, link them to other Web pages, and specify target frames.

Note: Setting options for an auto slice automatically promotes it to a user slice.

1 Select the slice select tool ), and use it to select the Designs slice.

2 In the tool options bar, click the Slice Options button.

[ pteecop^ht info h^re iii^e |Ea | |

By default, Photoshop names each slice based on the filename and the slice number, so the current filename appears as "15Start_03," representing slice number three in the 15Start.psd file.

3 In the Slice Options dialog box, enter the following information: In Name, type Designs_button; in URL, type Designs.html; and in Target, type _blank. Then click OK.

Slice Octions

Name: Designs.bjtton

f OK



URL: Designs.html

Target: .blank



Message Text:

Alt Tag:



X: 1133


W: |?4

V: 1100


Slice Background Type: None


ground Color: Q

Note: The Target option controls how a linked file opens when you click the link, such as whether the file opens in a new browser window or replaces the currently displayed file in the open browser. For more information, see Adobe Photoshop 7.0 online Help or an HTML reference (either printed or available on the Web).

4 Enter information for the other three user slices you created:

• Select the Structures slice and type Structures_button in Name, Structures.html in URL, and _blank in Target.

• Select the Art slice, and type Art_button in Name, Art.html in URL, and _blank in Target.

• Select the Contact slice and type Contact_button in Name, Contact.html in URL, and _blank in Target.

5 Choose File > Save.

In the Slice Options dialog box, you can also enter message text to appear in the browser's status area, enter alternate text to appear in place of the images if they don't appear in the browser, specify dimensions to move or resize a slice, and change the slice to a No Image slice that contains HTML and text. Additional output settings for changing the background color of a slice are available when you open the Slice Options dialog box from the Save For Web dialog box or Save Optimized dialog box.

Was this article helpful?

0 0
Learn Photoshop Now

Learn Photoshop Now

This first volume will guide you through the basics of Photoshop. Well start at the beginning and slowly be working our way through to the more advanced stuff but dont worry its all aimed at the total newbie.

Get My Free Ebook

Post a comment