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

Use shading on first line only

Community Beginner ,
Feb 23, 2023 Feb 23, 2023

Copy link to clipboard

Copied

Hi all,

I'm tryig to use paragraph shading to create a few "objects" smarter in a template I'm working on.
Example 1:
The designer wants all paragraph numbering to be white on black with rounded corners.

  1. Instead of manual numbering I have used numbering in the paragraph styles and it works.
  2. I have used shading to create the black background. Se settings below.

janh24813240_0-1677157372358.png

 

janh24813240_3-1677157599855.png

The large negative right offset limits the shade to the numbers only. BUT...

When the numbered title becomes more than 1 row things go south:

janh24813240_4-1677157753421.png

Any suggestions on how to solve this?

 

TOPICS
How to

Views

367

Translate

Translate

Report

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 ,
Feb 23, 2023 Feb 23, 2023

Copy link to clipboard

Copied

Can you separate the sections you want to add any effect you need into it's own text box?

Lee- Graphic Designer, Print Specialist, Photographer

Votes

Translate

Translate

Report

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
Guide ,
Feb 23, 2023 Feb 23, 2023

Copy link to clipboard

Copied

Para Rule Above!

 

(^/)  The Jedi

Votes

Translate

Translate

Report

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 ,
Feb 23, 2023 Feb 23, 2023

Copy link to clipboard

Copied

LATEST

Hi @janh24813240:

 

I tried approaching this with a custom underline, a paragraph rule, and using your approach with shading—none were sucessful. The best I can offer is to have two paragraphs styles: one for a single line, and one for two lines. Base one style on the other so if someone asks you to change something that impacts both, you can modify one, and the other one will follow.

 

EDIT: Michel is right. Somehow I enabled Rule Below and not Rule Above when I was working on it. Use a Rule Above with a large right indent. You can create a custom rule style in the Stroke panel with rounded endcaps. You will not have as much control over the corners as you do with shading, but it should work. I'll be back with a quick screenshot.

____________________

 

Here's the video clip: you can create a Custom Stroke style in the Strokes panel. Be sure to increase the dash length so that it goes all the way across (and you don't get a dashed line). And then choose rounded endcaps. Then you can define a rule above the paragraph style, give it the same right indent as your shading, pick the new custom stroke and adjust the offset so that it sits behind the numbers. Happy to elaborate if you need additional details.

 

2023-02-23_08-31-39 (1).gif

 

~Barb

Votes

Translate

Translate

Report

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