-
1. Re: Stroke on only one side of a square?
Andrew Barrington Dec 1, 2010 3:50 AM (in response to linziloop)is there any reason why you couldnt just add a vertical or horizontal line?
Andy Barrington
www.professionalaffordabledesign.com
-
2. Re: Stroke on only one side of a square?
linziloop Dec 1, 2010 3:56 AM (in response to Andrew Barrington)Yes, related to the last question i posted, i am trying to hide a column in a table which i can't delete as i will need it later, and i don't want to have 2 documents. So i want the left hand stroke of the square I'm using to hide the column to look like the right hand stroke of the table. Sounds mad but it's about the best, easiest and quickest solution I've had so far lol!
I suppose i could just use a separate stroke and square but i want to keep this as simple as possible so if there is a way to have one side of the square a stroke, that would be fab. I fear there is not an easy way to do this.....
-
3. Re: Stroke on only one side of a square?
macinbytes Dec 1, 2010 5:07 AM (in response to linziloop)Why don't you just fill the box rather than stroking the square?
-
4. Re: Stroke on only one side of a square?
P Spier Dec 1, 2010 5:19 AM (in response to linziloop)The only way to have a stroke on one side of a squrae that I know of, other than drawing a separate rule (presuming you mean you want a stroke on a vertical edge -- for horizontal you could use a paragraph rule), is to use a one-cell table.
-
5. Re: Stroke on only one side of a square?
peter at knowhowpro Dec 1, 2010 8:22 AM (in response to linziloop)linziloop wrote:
Yes, related to the last question i posted, i am trying to hide a column in a table which i can't delete as i will need it later, and i don't want to have 2 documents. So i want the left hand stroke of the square I'm using to hide the column to look like the right hand stroke of the table. Sounds mad but it's about the best, easiest and quickest solution I've had so far lol!
I suppose i could just use a separate stroke and square but i want to keep this as simple as possible so if there is a way to have one side of the square a stroke, that would be fab. I fear there is not an easy way to do this.....
Have you tried to create a table cell style with a stroke on the side you want it, and a paragraph style whose character color is Paper, then select the column and apply the cell style to it? It will take a bit of fussing until you get it right.
HTH
Regards,
Peter
_______________________
Peter Gold
KnowHow ProServices
-
6. Re: Stroke on only one side of a square?
OurGazebo Dec 19, 2011 6:00 AM (in response to linziloop)That would be a very useful feature. You can do it in tables but not in boxes. I'm going to submit a feature request for it -- you can do the same and maybe we'll get it eventually!
-
7. Re: Stroke on only one side of a square?
[Jongware] Dec 19, 2011 6:03 AM (in response to OurGazebo).. But InDesign isn't limited to just "boxes". What with triangles, or 5-pointed stars?
Even Illustrator -- fully targeted to illustrating, other than InDesign -- doesn't have this "feature". Possibly because there is no logic behind it.
-
8. Re: Stroke on only one side of a square?
P Spier Dec 19, 2011 6:23 AM (in response to OurGazebo)I just has a flash and figured out a way to do it on one edge (doesn't work if you want to to turn a corner or do opposite edges to have more than one stroke). You can use the type on a path feature to put a tab character on the path of the frame (I use a right indent tab and adjust the start and stop marker positons along the path), then apply an underline to the tab.
-
9. Re: Stroke on only one side of a square?
OurGazebo Dec 19, 2011 7:56 AM (in response to [Jongware])@ Jongware - Sorry, should have said "frame" not "box." I would think the feature should work on any kind of polygon. And there is no reason not to ask for that feature. It's logical to me; I work at a company whose branding requires a thick green stroke at the bottom of all pictures, and a thin grey stroke on the other 3 sides.
Or by "logic" maybe you meant a technical developer term...
-
10. Re: Stroke on only one side of a square?
OurGazebo Dec 19, 2011 7:44 AM (in response to P Spier)@ Peter - interesting solution! That did work. Not as easy as a stroke setting but much easier than having separate boxes on top of the frame!
-
11. Re: Stroke on only one side of a square?
P Spier Dec 19, 2011 8:38 AM (in response to OurGazebo)Make a style to add the underline.
-
12. Re: Stroke on only one side of a square?
MT.Freelance Dec 19, 2011 11:29 AM (in response to OurGazebo) -
13. Re: Stroke on only one side of a square?
h4gfish Jun 25, 2013 3:44 PM (in response to linziloop)You could draw a 0.5pt line, then <cut> it and <paste> it in using the text insertion cursor at the top of your text frame. Select the line, and nudge it up by about 9pt.
Alternatively, you could use a Right-indent tab <shift+tab> at the top of your text frame, and give that line a paragraph rule above. If you offset the rule by about 3mm, it lines up okay.
Either way, it's a kludge. It would be nice if frames supported different strokes on each side. When going to HTML/CSS feels 'easy and liberating', something's screwy :/
For non-quadrilateral polygons, Adobe could just do what they do everywhere else, and grey-out the options where a feature isn't supported. Given the number of times I use triangles and stars, this would inconvenience me approximately never.
-
14. Re: Stroke on only one side of a square?
ezafer Sep 11, 2013 9:58 PM (in response to linziloop)This was bugging me too, and I tried this solution:
- Select your object
- Create a new Object Style (Window > Styles > Object Styles)
- Under options for the object style, select "Inner Shadow"
- Turn "Preview" on because you're going to need to finagle with the settings
- Key settings to adjust:
- Blending mode should be normal,
- Opacity should be 100%
- Choke must be 100%
- Size should be 0
- Play with the position values. Usually X and Y offset will be 0
- Distance will determine the "border" width.
- Angle determines the side the border will be on
- Save the style
What I'm essentailly doing here is choking the inner shadow on the box to a solid line, then adjusting the position of that shadow to just stick in on one side. This creates the illustion of a solid line. You won't have to cut up the object, you don't need multiple objects grouped together, the line will always move and adjust with the object, and you don't need to add text to mimic a line. The downsides are that it takes a few minutes to adjust the thickness and position just right, so be sure to turn on your preview; and this works best on 4-sided objects.
-
15. Re: Stroke on only one side of a square?
Raphael Freeman Apr 16, 2014 7:55 AM (in response to ezafer)this is a nice answer, but requires the background to be white and this also give me a thin border on the right and left.
-
16. Re: Stroke on only one side of a square?
Raphael Freeman Apr 16, 2014 7:56 AM (in response to P Spier)I used this technique for quite a few projects, but with actually pasting a line into the text box. This is more elegant and flexible. Thank you.
-
17. Re: Stroke on only one side of a square?
sandeecohen Apr 16, 2014 8:01 AM (in response to ezafer)Setting one of the shadows or glows or any of the transparency effects to a solid line is problematic when the page goes to print.
You're basically creating a raster element at infinitly high resolution.







