Mobile app version of vmapp.org
Login or Join
Alves566

: How do you make a justified background color for a paragraph style in InDesign? In InDesign if I have a paragraph style and every time I use that style I want a "colored" box behind it justified

@Alves566

Posted in: #AdobeIndesign #ParagraphStyles

In InDesign if I have a paragraph style and every time I use that style I want a "colored" box behind it justified to the column width. How would you suggest doing this? Currently it's been done manually with predefined "boxes" for 1-Line, 2-Line & 3-Line depending on how long the heading is. There has got to be a way to automate this though. Perhaps using some sort of programmatic style sheet?

All I could find was this "Highlighting an Entire Paragraph with Color" which wouldn't work because the headings are centered but we want the background color to be the full column width.

Ideally, with a dynamic "height" so that it can be say 4pt above and below the text as well. Almost like padding would be if I were doing this on a website.

10.04% popularity Vote Up Vote Down


Login to follow query

More posts by @Alves566

4 Comments

Sorted by latest first Latest Oldest Best

 

@Alves566

As of InDesign CC2015 a new feature was released called Paragraph Shading to address this very topic.

For basic usage you can click the Shading button on your Paragraph Formatting area:



You can also have some control over this through Paragraph Styles:

10% popularity Vote Up Vote Down


 

@Smith574

If you are wanting to do this automatically and have InDesign CS6+ the only alternative is to create a script to achieve what you want.

If you're on a Mac you could always use AppleScript to record what you're doing and modify it accordingly to apply to every object in your project. So this would extend further on Marcoslhc's answer.

If you're not on a Mac you can create the script in JavaScript which could run on either Mac or PC. When I have time I will try to write the code out for you.

Documentation on Scripting

10% popularity Vote Up Vote Down


 

@Rambettina927

The column part is in the Rules section, not in the Underline Section.

I'm not sure the Underline option will achieve what you are looking for if the paragraphs you are styling are going to have different line counts/heights.

It would however work really well if you are going to use it for headers with one or two lines. You can just set up specific style sheets for each case.

10% popularity Vote Up Vote Down


 

@Correia448

I think the best way of doing so is coloring the text box, set the paddings and then create an object style. In the object style you can configure the default paragraph style to use.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme