How to Draw Tables in Photoshop

Drawing framed shapes in Adobe Photoshop presents a greater challenge than attempting the same maneuver in an illustration program or Web-design application. By default, Photoshop paints pixels rather than creating crisply defined strokes. After all, the program's strengths lie in painting, retouching and other composition tasks that typically require the opposite of straight lines. Choose the right tools, however, and Photoshop can yield the sharp edges and evenly positioned rows and columns that make up a tabular shape.

Colorful tiles
Place a table over a contrasting background to form a tile-like pattern.
credit: Photos.com/Photos.com/Getty Images

Step

Activate the Line tool, docked with the Rectangle tool in the Adobe Photoshop Tools panel. Double-click on the foreground color swatch in the Tool panel and set your line color in the Color Picker.

Step

Click on the unlabeled Shape Layers icon in the Options bar to prepare Adobe Photoshop to draw the appropriate type of output. The alternatives create either unfilled paths or unmasked pixels. Set the width of the line in the Options bar.

Step

Press and hold the "Shift" key while you click and drag to draw a straight horizontal line the width of your table. Press and release the "Esc" key to force Adobe Photoshop to create a new layer with the next shape you draw. Press and hold the "Shift" key again, and draw a straight vertical line the height of your table.

Step

Press "F7" to reveal the Layers panel and "F8" to open the Info panel if these interface elements aren't already visible. Click on the Layers panel entry for the Shape layer that contains the horizontal line you drew.

Step

Press "Ctrl-T" to activate Free Transform mode, and observe the height that the Info panel reports for your horizontal line shape. If the height falls short of or exceeds the measurement you want for your finished table, enter the appropriate value in the "H" field of the Options bar. Press "Enter" or click on the check mark in the Options bar to confirm your transformation.

Step

Click on the Layers panel entry for the Shape layer that contains the vertical line you drew. Press "Ctrl-T" to enter Free Transform mode. Evaluate and change the line's width if necessary, this time typing values into the Options bar's "W" field.

Step

Select the Layers panel entry for the vertical line. Hold down the "Ctrl" key while you click on the layer icon for the horizontal-line Shape layer. This creates an active selection that corresponds to the size of the line. With the vertical-line Shape layer still active, open the "Layer" menu, choose the "Align Layers to Selection" submenu, and select the "Top Edges" option. Return to the "Align Layers to Selection" submenu and choose "Left Edges." These two steps orient the horizontal line as the top edge of the table.

Step

Press "Ctrl-D" to deselect the active selection. Select the Layers panel entry for the horizontal line. Press "V" to switch to the Move tool. Hold down the "Alt" key, press and hold the "Shift" key and drag the line vertically to create a duplicate layer. Create as many duplicates as you need for the number of rows in your table, including a copy to form the bottom edge. With the last duplicate layer still active, hold down the "Ctrl" key and click on the layer icon for the vertical line. Align the last duplicate horizontal line to the selection, choosing the "Bottom Edges" option from the "Align Layers to Selection" submenu. Press "Ctrl-D" to deactivate the selection.

Step

Hold down the "Shift" key and click on the first and last Layers panel entries for horizontal lines, selecting all of their panel entries. Open the "Layer" menu, choose the "Distribute" submenu and select "Vertical Centers." This procedure positions all the horizontal lines an equal distance apart, leaving the top and bottom lines unmoved.

Step

Click on the Layers panel entry for the vertical line. Hold down the "Alt" key, press and hold the "Shift" key, and drag the line horizontally to create a duplicate layer to form the right edge of the table.

Step

Hold down the "Ctrl" key while you click on the layer icon for one of the horizontal-line Shape layers, creating an active selection. Open the "Layer" menu, choose the "Align Layers to Selection" submenu, and select the "Right Edges" option, positioning the second horizontal line layer as the right edge of the table. Press "Ctrl-D" to deactivate the selection.