# Align lines in square

There are one square and two horizontal lines.
I need this lines to be arranged in the square dividing it into three equal parts.

Is it possible to do it without messing with pixels?
How can I align lines in the square? And how can I crop them to the width of the square?

From this:

To this (not perfect):

-

I can think of two ways:

1) Copy the square. Lock it. Paste In Front. In the Control bar (CS5), make the depth of the new square 33%. Drop a guide. Move the new square down so it aligns with the bottom. Drop a new guide.

2) Draw two additional lines. Put one on top of the top line, and one on top of the bottom. LOCK the square. Select all four lines and use Align → Distribute Equally.

-
I'd go with #2.. easiest method in my opinion. – Scott Feb 11 '12 at 20:56

Lauren Ipsum has a couple great methods. I'd probably use #2.

Here's a third though...

1. Copy the square.
2. Edit > Paste In Front
3. Double-click the Scale Tool
4. Enter 33.3% in the (non-uniform) vertical field and hit okay
5. Now set as guides - Command/Ctrl-5

This will give you guides at exactly 1/3 positions.

To "crop" the lines the width of the square you can simply move the anchor points in until they align with the square sides.

-

You are talking about pixels but you also use the keyword Adobe Illustrator so this is confusing. You can use mathematical expressions in many parts of Adobe softwares so if you want perfect thirds, just add /3 to divide in thirds.

I'm not sure what you want to do with this afterwards so I'll give you a way to do it that looks like what you've started :

Use a square and FOUR lines instead of 2. Put the top and bottom lines exactly on your square. Select all lines and use the align panel : distribute vertically on selection. Erase top and bottom line. Use the pathfinder to remove the leftover lines outside your shape.

Using smart guides would be helpful (cmd+u)

-