Styling titles

Having trouble installing Oxygen? Got a bug to report? Post it all here.
anna_craneo
Posts: 33
Joined: Tue Feb 20, 2018 2:51 pm

Styling titles

Post by anna_craneo »

Hi, I use CSS for DITA-PDF transformation and would like to add different spacing between topics of different levels.
I was thinking about adding margin-top property prior the title but it does not work. Please help e out with this one.
Attach a picture to clarify what exactly a need to do.
Image
Dan
Posts: 501
Joined: Mon Feb 03, 2003 10:56 am

Re: Styling titles

Post by Dan »

Hello,
Try adding the following rule to the customization CSS:

Code: Select all


*[class ~= "topic/topic"] > *[class ~= "topic/title"]{
margin-top: 10em;
background-color: pink;
}
If it does not work (should create huge spaces before the titles and render them in pink), it means there are other CSS rules that change the margin-top of the titles. If you still have problems, send us the CSS using the support address.

Many regards,
Dan
Post Reply