5

I'd like to surround a path with a border (see the third illustration below). However, I cannot get it done without using Path -> Outline stroke. This is very inconvenient, as Outline stroke replaces the original path with a new, much more complicated one, and it becomes much harder to edit the path later.

I thought that maybe some border effect exists that I don't know of. Something like Outer glow (see the second illustration), but solid rather than a gradient. Is there such an effect?

enter image description here

4 Answers 4

7

I found it! It's actually very simple:

  1. Open the Appearance panel and add another stroke, two pixels wider than the green one. Make it black.
  2. Drag it down in the Appearance panel, so that it is below the green stroke.

Voilà - a border!

1
  • 1
    That's the one to use. It's been there for quite a while, but a lot of folks haven't latched onto it. Sep 12, 2011 at 5:30
1

Try this:

Copy your original path. Lock it.

Paste in place.

Turn your copy into outlines. Unlock all.

Group the outline and the original.

It's a bit quick-and-dirty, and if you make changes you have to redo this sequence, but it preserves the editing capabilities you want.

2
  • So is there no better solution? I can't get it - why does Illustrator support an outer glow effect but not a border effect...
    – Ilya Kogan
    Sep 10, 2011 at 12:09
  • Sadly it doesn't appear there is. Unless you tinker with Offset Stroke some - although I've had a heck of a time really understanding how it works. Sep 10, 2011 at 14:30
1

This answer shows you how to use sub-layers inside your outline layer. This way you can acchieve the result @Lauren Ipsum is describing but with

  1. the flexibility to move your lines around and not accidently missing one of the underlying lines and
  2. having the possibility to save your "style" and reusing it on other lines later.
0

You can add more stroke in Appearance from Window/Appearance. Then Use the Stroke panel in Window/Stroke to Align Stroke to outside.

1
  • 2
    I think this is similar to my answer, isn't it?
    – Ilya Kogan
    Nov 7, 2012 at 7:28

Your Answer

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

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