I would like to create a border only on one side of a rectangle. That border would have that modern zigzag stroke that is present on so many websites. Just like on this photo :

Jagged borders

I've tried creating a triangle and adding it as a brush (pattern brush to be more precise). However, it didn't work out well because the triangles were not aligned to the outside of the rectangle. Also they were surrounding the rectangle on every side instead of just one.

Is there a good and quick tutorial out there on internet that would explain how such zigzag borders are created ?

2 Answers 2


You can't use effects or brushes with entire rectangles. Simply create one side, then draw the other three sides of a rectangle.

  • Create the triangles easily by drawing a path and choosing Effect > Distort & Transform > Zig Zag

  • Choose Object > Expand Appearance

  • Grab the Pen Tool and draw the other three sides of a rectangle.

enter image description here


Ok do this:

  1. Make a line about the length of the ZigZag size you need(use the line tool or pen tool). Make sure to put a color on the Stroke or Fill of the line before the next step.

  2. Go to Effect > Distort & Transform > ZigZag

  3. Click the preview checkbox and adjust the Size and Ridges per Segment sliders until satisfied.

  4. Once you've hit OK you'll have your zigzag. Next you need to go to Object > Expand or Expand Appearance. This turns it into a path as opposed to an Effect on a Path.

  5. Now all you need to do is make a rectangle and fit it to the zigzag path. I'd combine the 2 shapes with Windows > Pathfinder (If pathfinder is checked it's already open) and hit the first icon which is "Unite".

It'll probably be helpful to have the Smart Guides on when fitting the Rect to the ZigZag.

Hope this helps.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.