line spacing between lists and other elements

Post here questions and problems related to editing and publishing DITA content.
Ecumaster
Posts: 11
Joined: Thu Jul 06, 2023 5:31 pm

line spacing between lists and other elements

Post by Ecumaster »

Hi,

does anyone know how to decrease the distance between lists and other elements (like chapter titles or paragraphs)?
image.png
image.png (29.41 KiB) Viewed 331 times
cheers
Wojtek
Wojtek
andrei_pomacu
Posts: 39
Joined: Mon Jul 25, 2022 11:18 am

Re: line spacing between lists and other elements

Post by andrei_pomacu »

Hi,
You can debug the CSS in order to see which rule you need to override to decrease the distance between the elements what you presented.
To debug the CSS you need to open the HTML file from the "out\pdf-css-html5" in browser.
Select the element that has the problem, in your case the key functionalities element or the list under. Then you inspect the CSS that is applied on the element and see which rule creates that distance.
Then you copy that rule in your CSS customization file and and refactor the rule with the distance that you need.
You can read more about debugging the CSS from here
Regards,
Andrei
Post Reply