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

Underlined text doesn't centre align

New Here ,
Sep 20, 2021 Sep 20, 2021

I often use text underline to higlight text or create a "box" behind text. What I've noticed is that when I try to centre align a textbox with underlining, it won't always align properly. Specifically if you ad a space before and after the text.

So a normal textbox aligns perfectly:

Normal.png

 

Also the underlined text box without the space as a first and last character aligns perfectly:

Underlined text box.png

 

But when I have added a space in front and at the end of the sentence, all of a sudden the text box doesn't align.

Screen Shot 2021-09-21 at 11.51.56 am.png

Any suggestions how to fix this?

I could obviously create a box under the text, but I'm working with templates that require name data merge, so which would require for me to manually adjust the names and boxes manually.

 

Any suggestions on how I could fix this or if I've missed some setting would be greatly appreciated.

 

TOPICS
Bug , Feature request , Print , Type
654
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 1 Correct answer

Community Expert , Sep 21, 2021 Sep 21, 2021

You're not missing anything. InDesign ignores trailing spaces when it calculates paragarph formatting so adding a space at the end of even a single line does not change paragraph centering... but any spaces at the beginning (or elsewhere) does.

It does of course add the underline to those trailing spaces (which is actually something I wished we could toggle off, but here we are). Fixed spaces (like an EN space) don't solve the issue for you either.

You can use Paragraph Border to do what you wan

...
Translate
Community Expert ,
Sep 20, 2021 Sep 20, 2021

For something like this you could use Paragraph Shading

https://helpx.adobe.com/indesign/using/formatting-paragraphs.html

Which can be found this page.

 

You have a bit more control over the width etc.

 

Another option is the to use Paragraph Rules.

Whcih can also be found in that link.

 

 

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 ,
Sep 21, 2021 Sep 21, 2021

You're not missing anything. InDesign ignores trailing spaces when it calculates paragarph formatting so adding a space at the end of even a single line does not change paragraph centering... but any spaces at the beginning (or elsewhere) does.

It does of course add the underline to those trailing spaces (which is actually something I wished we could toggle off, but here we are). Fixed spaces (like an EN space) don't solve the issue for you either.

You can use Paragraph Border to do what you want.

e.g.:

Screen Shot 2021-09-21 at 10.52.04 AM.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
New Here ,
Sep 21, 2021 Sep 21, 2021

Thanks, this helps, not sure why I didnt think of the Border option myself .. 

 

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 ,
Sep 21, 2021 Sep 21, 2021
LATEST

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