1 00:00:00,000 --> 00:00:02,810 [Treehouse presents] 2 00:00:02,810 --> 00:00:06,050 [Quick Tips][Aligning Objects in Adobe Illustrator][with Mat Helme] 3 00:00:06,050 --> 00:00:08,670 Hey, what's up—Mat Helme here with a Treehouse Quick Tip: 4 00:00:08,670 --> 00:00:11,960 Aligning objects in Adobe Illustrator CS6. 5 00:00:11,960 --> 00:00:15,540 After we open up Adobe Illustrator CS6 and create a new document, 6 00:00:15,540 --> 00:00:19,250 let's head over to the Tools Panel and grab the Rectangle tool and make a large rectangle. 7 00:00:21,780 --> 00:00:28,720 Then, let's grab the Ellipse tool and make a smaller circle than the rectangle. 8 00:00:28,720 --> 00:00:33,940 Then, let's grab the Star tool and make an even smaller star. 9 00:00:34,860 --> 00:00:38,100 Now, so we're not confused, let's change the color of these so they're all different. 10 00:00:38,100 --> 00:00:40,450 We can leave the rectangle blue; 11 00:00:40,450 --> 00:00:46,690 let's make the circle orange and the star yellow. 12 00:00:47,730 --> 00:00:53,750 Now, let's place these objects on top of one another like so. 13 00:00:56,540 --> 00:01:02,560 Now with these objects selected, you can see in the Control Panel—at the top—I have the Align Panel. 14 00:01:02,560 --> 00:01:08,190 Now, we can actually access this by going to the window, selecting Align, 15 00:01:08,190 --> 00:01:10,010 and then we get the Align Panel. 16 00:01:10,010 --> 00:01:17,040 Now, say if I want to make all of these objects align horizontally to the center, 17 00:01:17,040 --> 00:01:19,880 I simply select that, and you can see they all align. 18 00:01:19,880 --> 00:01:23,510 Now, if I wanted to align them vertically, I can do that as well. 19 00:01:24,400 --> 00:01:25,910 And you can see they all line up. 20 00:01:27,410 --> 00:01:30,950 Now say if I want to align them to the right side of the Art Board here, 21 00:01:30,950 --> 00:01:39,970 I can do that by going to my Align Panel, selecting Show Options, go to Align To, 22 00:01:39,970 --> 00:01:45,980 and select Align To Art Board, and then when I click Horizontal Align Right, 23 00:01:45,980 --> 00:01:49,160 you can see that it aligns all the way to the right of the Art Board. 24 00:01:49,160 --> 00:01:53,220 Now, if I want to align the objects to—say—a key object, 25 00:01:53,220 --> 00:02:01,960 I can do that by selecting all of them, go to Align To, Align To Key Object, 26 00:02:01,960 --> 00:02:08,360 and say if I select the circle, everything will now align left to the circle. 27 00:02:13,120 --> 00:02:16,060 Now, say if my objects are spaced out like so, 28 00:02:16,060 --> 00:02:26,280 and I want the star aligned to the left, the square aligned to the right, and the circle displayed in the middle, 29 00:02:26,280 --> 00:02:38,670 I can do this by selecting all of them, then selecting Align To Art Board, and then select Horizontal Distribute Center. 30 00:02:39,490 --> 00:02:41,660 You can see they all align perfectly. 31 00:02:43,990 --> 00:02:48,680 Now, if I want to align all of these objects—say—40 pixels from one another— 32 00:02:48,680 --> 00:02:53,830 because as you can see, it's not as even between the circle and square as it is between the circle and star— 33 00:02:53,830 --> 00:03:05,660 I can select all of them and select Align to Key Object, then make 40 pixels in the Distribute Spacing, 34 00:03:05,660 --> 00:03:13,850 and then select Horizontal Distribute Space, and you can see now they're all aligned from the star 40 pixels, 35 00:03:13,850 --> 00:03:16,910 and then the circle to square 40 pixels. 36 00:03:16,910 --> 00:03:21,230 This comes in real handy if you're creating—say—navigation for a website. 37 00:03:22,630 --> 00:03:33,350 Now, say I have a very large stroke on the circle of—say—black, 38 00:03:33,350 --> 00:03:38,420 and I want to left align all of these objects, 39 00:03:38,420 --> 00:03:47,870 you'll notice that it's not aligning to the end of the stroke; it's aligning to the actual object, 40 00:03:47,870 --> 00:03:52,700 and you can see this when we go to View and then Outline— 41 00:03:52,700 --> 00:03:56,050 it shows all of the paths, and it's correct—they are aligned— 42 00:03:56,050 --> 00:03:58,820 but we want to align it to the outside of that stroke. 43 00:03:58,820 --> 00:04:04,670 So, let's switch back over to the Preview mode, and then in our Align Options, 44 00:04:04,670 --> 00:04:07,240 we can use Preview Bounds, 45 00:04:07,240 --> 00:04:12,100 so what that's going to do is align everything to the edge of the stroke. 46 00:04:16,810 --> 00:04:18,620 Like so. 47 00:04:20,279 --> 00:04:23,540 And that is how we align objects in Adobe Illustrator CS6. 48 00:04:24,800 --> 00:04:28,610 For more in-depth tutorials and projects using Adobe Illustrator CS6, 49 00:04:28,610 --> 00:04:33,630 head over to Treehouse and treat yourself to a gold membership—you deserve it!