LR Tips Five Ways to Box a Paragraph in InDesign


Senior Member
Sep 27, 2006
Mike Rankin

This article was originally published in InDesign Magazine #66 (October 2014). Subscribe now!
Have you ever wanted to put a border around a paragraph in InDesign—or shading behind one? It’s a common need and after all these years, you’d think that accomplishing this simple task would be, well, simple. Unfortunately, you won’t find paragraph borders or shading among InDesign’s Paragraph Style options. But where there’s a will, there’s a way—or in this case, five ways to choose from.
Draw a frame?The simplest and fastest solution is to just draw a frame over the paragraph, format it with the stroke, fill, and/or corner effects you want, and then move it behind the text. You can even use a pattern or photograph as a background (Figure 1). The downside is that if the text is edited or moves due to changes made elsewhere, you will have to manually resize and reposition the frame(s). And it won’t export to reflowable EPUB.

Figure 1: Sometimes the quickest solution is also the best. Just draw a frame, place it behind the paragraph, and go about your day.
Draw and anchor a frame?Again, start by drawing a frame with the look you want over the paragraph. In the Control panel, set the blending mode to Multiply, and then anchor the frame in the text flow. The virtue of this method is that the border or shading flows along with the paragraph. But you’ll have to resize it manually if the paragraph is edited, and it won’t break across linked text frames. Also, the Multiply blend mode allows you to see black text as if it were in front of the frame. But this method won’t work with text that is colored anything other than black, or when other items are sitting behind the text frame (Figure 2). It works if you export to a fixed-layout EPUB, but not in a reflowable one (the image moves out of position).

Figure 2: Anchoring the frame makes it flow with the text, but also forces you to use a blending mode trick to make the text visible inside the background color or image.
Use paragraph rules?Put your cursor in the paragraph, and choose Paragraph Rules from the Control panel menu. Make sure Preview is checked. Turn on either Rule Above or Rule Below. Set the width to Column, and use the Weight, Color, Offset, and Indent settings to fit the look you want for your paragraph (Figure 3).

Figure 3: Shading courtesy of a Paragraph Rule Above. It will move with the text, but any change in the length of the paragraph or text formatting will force you to adjust the weight and offset values.
This method only allows you to create a background, not a border. It will not break across linked text frames. You also need to create separate custom rules for each paragraph, and adjust them if the paragraph is edited. It will export OK to a fixed-layout EPUB. It will not export to a reflowable EPUB.
Use a single cell table?Select all the paragraph text, but not the paragraph return at the end. Choose Table > Convert Text to Table. In the dialog box, leave the settings at their defaults, and click OK. Select the table, and use the Control panel to format it with a stroke, fill, spacing, etc. This method allows the border/background to travel with the text if the paragraph is edited. It also allows you to have separate border formatting on each side (Figure 4). It will not break across linked frames. It will export to a fixed or reflowable EPUB. If you’re going to do this more than once, you should probably make table and cell styles to speed up the process and ensure consistent results.

Figure 4: Using a single-cell table means you can take advantage of all of InDesign’s table and cell options, including separate stroke styles for each side.
Use a plug-in?DTP Utils offers an add-on for InDesign (CS3–CC 2014) called Paragraph Border. It’s specifically dedicated to the task of making paragraph borders and shading. This is really for folks who need this feature on a regular basis, as part of their daily work. It’s the most powerful solution, and the most expensive, costing $49 for a license. With Paragraph Border installed, you get a new set of controls at the bottom of the Paragraph Style Options dialog box, called Border and Background (Figure 5). They allow you to apply separate borders to the top, bottom, left, and right sides of a paragraph, using any stroke styles. You can also apply backgrounds with solid colors or gradients, use corner effects, and control the offsets on each side. And there’s no problem when the paragraph spans or splits across columns, or is continued in another text frame—the borders and backgrounds always follow the text correctly.

Figure 5: The most powerful (and pricey) solution, DTP Utils’ Paragraph Border add-on.
While it is disappointing that more than ten years into its existence InDesign still lacks a simple solution for boxing a paragraph, you have plenty of alternatives to fit any situation, from quick-n-dirty (and free) to highly crafted and commercial.

Mike Rankin is the Editor in Chief of InDesign Magazine and the author of several courses, including Adapting a Print Layout for Digital Publishing.

Inserted Article Image(s):

Article Slider image:

[h=2]Liked This? Read These![/h] [TABLE="class: views-view-grid cols-2"]
[TR="class: row-1 row-first"]
[TD="class: col-1 col-first"] [h=3]InDesign How To: Using Paragraph Rules[/h]

Excerpted from InDesign Magazine, June/July 2012 (issue 48). Subscribe now! Read More
[TD="class: col-2 col-last"] [h=3]InDesign How-To: Applying Paragraph Formatting[/h]

This article is excerpted from "Real World Adobe InDesign CS." At the heart of any good page layout is formatting and perhaps none is more critical than paragraph formatting. Bad indents,... Read More
[TR="class: row-2 row-last"]
[TD="class: col-1 col-first"] [h=3]Paragraph Indention: Old Standby or Old Hat?[/h]

It is perhaps the most abiding of today’s typographical conventions: indenting the first line of a paragraph. For those trained on typewriters, it’s almost a tic: Return, Tab. Read More
[TD="class: col-2 col-last"] [h=3]On the Move to InDesign: Formatting Text[/h]

If you're familiar with Adobe Illustrator, InDesign's Tools palette should look very familiar. However, you may wonder about that tiny "T" just under the Fill and Stroke icons. That button changes... Read More

Print Design & Layout
Type Design


Top Bottom