Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

How to Add Padding, Background, and Rounded Borders to Text

Participant ,
Mar 18, 2021 Mar 18, 2021

Hi there,

 

Is it possible to add padding, background and rounded borders to text automatically?

 

Something like this:

toolman123_0-1616104890844.png

 

The above image was done with a shape behind text, but wondered if it can be done with just a text box?

 

Thanks

<Title renamed by MOD>

TOPICS
How to , Type
5.3K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 2 Correct answers

Community Expert , Mar 18, 2021 Mar 18, 2021

Sure. Select the text frame and add the background color as for any other frame.

 

Use Type > Text Frame Options to adjust the vertical justification—I chose Center—and adjust the corners with Object > Corner Options. (Or play with the little yellow square under the outport—it does the same thing.)

 

fr.png

 

~Barb

 

 

Translate
Community Expert , Mar 19, 2021 Mar 19, 2021

I know what you finally want. And there are a few possibilities to do that.

Some of them are already mentioned:

  • text frame options (with object style)
  • character style (with underline)

 

You can also use:

  • paragraph rule (in paragraph style)
  • paragraph shading (in paragraph style)

 

But we do not know what are your requirements. And that's why we cannot say which method is the best for you.

  • Should the text frame always have the same size?
  • Should the text always changing it's contents?
  • Should t
...
Translate
Community Expert ,
Mar 18, 2021 Mar 18, 2021

Sure. Select the text frame and add the background color as for any other frame.

 

Use Type > Text Frame Options to adjust the vertical justification—I chose Center—and adjust the corners with Object > Corner Options. (Or play with the little yellow square under the outport—it does the same thing.)

 

fr.png

 

~Barb

 

 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Mar 19, 2021 Mar 19, 2021

Thank you 🙂

 

I now have this:

toolman123_0-1616147959131.png

 

 

Is there an easy way to vertically center the text inside it's box with the background?

 

Thanks

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 19, 2021 Mar 19, 2021

Yes that will happen - you need to go to the Text Frame Options

As pointed out already - use Object Styles

https://helpx.adobe.com/ie/indesign/user-guide.html/ie/indesign/using/object-styles.ug.html#object_s...

 

 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 19, 2021 Mar 19, 2021

"Use Type > Text Frame Options to adjust the vertical justification—I chose Center."

 

~Barb 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Aug 16, 2024 Aug 16, 2024

Thanks Barb

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 29, 2025 Aug 29, 2025
LATEST

I also suggest changing the first baseline offset to Cap Height.

Screenshot 2025-08-29 at 9.49.23 PM.png

 

Screenshot 2025-08-29 at 9.48.55 PM.png

 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 18, 2021 Mar 18, 2021

Have a look at Object Styles.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Mentor ,
Mar 19, 2021 Mar 19, 2021

What about any text (not a frame)? 

Character style with underline. Stroke style with rounded corner for underline settings, and few spaces before and after text.

 

2021-03-19_14-21-33.png

 

Remember, never say you can't do something in InDesign, it's always just a question of finding the right workaround to get the job done. © David Blatner
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Mar 19, 2021 Mar 19, 2021

Thanks. 

 

I have found that I need to use the Advanced > baseline shift with a -3.5px value 🙂

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Aug 29, 2025 Aug 29, 2025

How in the world are you able to load an *.lnst file with rounded caps like that? Where can I edit such a file besides in InDesign. This is exactly what I need!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 19, 2021 Mar 19, 2021

I know what you finally want. And there are a few possibilities to do that.

Some of them are already mentioned:

  • text frame options (with object style)
  • character style (with underline)

 

You can also use:

  • paragraph rule (in paragraph style)
  • paragraph shading (in paragraph style)

 

But we do not know what are your requirements. And that's why we cannot say which method is the best for you.

  • Should the text frame always have the same size?
  • Should the text always changing it's contents?
  • Should the "colored area" always follows the changed text?
  • Are there always "one liner texts"?
  • and so on …

 

Here is an example of paragraph shading (color "follows" the text) :

Absatzrahmen_text-shading_01.png

 

live changing after text was edited:

Absatzrahmen_text-shading_02.png

 

Please answer my previous questions - so that we can really help you.

 

 

 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 19, 2021 Mar 19, 2021

It seems he wants to build something like this (his other thread) :

Best practice for the following text boxes/labels/tags?

 

 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 17, 2024 Aug 17, 2024

I realize this is an old thread, but nearly all of the solutions center on using a text frame. For single/whole paragraphs, though, Paragraph Shading would seem to be the efficient, flexible option. (Pixx-etc. mentions it but no one amplfied the notion.)

 

Paragraph Shading, plus offsets to expand and center (or offset) the surround, plus corner mods... presto. Completely adaptable to content and simply a Paragraph Style requiring no extra level of management. The down side is that it can't be used within a paragraph without putting it in an inline text frame, but it might be a more easily-managed solution even there.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines