Is there any native pdf configuration to apply common styling to all chapters or topics titles particularly? | Community
Skip to main content
September 25, 2023
Solved

Is there any native pdf configuration to apply common styling to all chapters or topics titles particularly?

  • September 25, 2023
  • 2 replies
  • 857 views

Nested Chapters or topic tiles take different heading levels and different styling. Is there any configuration to apply common styling to all chapters/topics titles particularly?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by vikchand

You can use .chapter  class to style all the chapter/topic titles

.chapter { color: blue; }

 

NOTE: If you have any style defined in h1.chapter or h2.chapter, etc. then those will override the styles defined in .chapter style, so make sure there are no conflicts.

2 replies

Adobe Employee
September 25, 2023

Hi @swati_ka5 

I assume you want to add common styling to each topic/sub-topics' titles. To achieve this type of use cases, you can download the temporary files and check the classes corresponding to each topic heading level. Then, add a common styling based on your requirements.

For example, If I have <h1>, <h2>, & <h3> levels for each topic and sub-topic then those headings should have .title.chapter.topicref as the common class (refer screenshot), then in content.css you should add something like below to apply the common styling. 

.title.chapter.topicref {
font-size: 20pt;
font-weight: bold;
color: #666;
}

Do try this and let us know if it works. 

vikchandAdobe EmployeeAccepted solution
Adobe Employee
September 25, 2023

You can use .chapter  class to style all the chapter/topic titles

.chapter { color: blue; }

 

NOTE: If you have any style defined in h1.chapter or h2.chapter, etc. then those will override the styles defined in .chapter style, so make sure there are no conflicts.