Reduce space between intro line and UL/OL items

Post here questions and problems related to editing and publishing DITA content.
joyceclc23
Posts: 11
Joined: Wed Aug 06, 2025 9:31 am

Reduce space between intro line and UL/OL items

Post by joyceclc23 »

How do I reduce the spacing between the introduction line and the list items?
image.png
image.png
image.png
You do not have the required permissions to view the files attached to this post.
sorin_carbunaru
Posts: 434
Joined: Mon May 09, 2016 9:37 am

Re: Reduce space between intro line and UL/OL items

Post by sorin_carbunaru »

Hi,

Are these screenshots of the source content or the published content? If they from the published content, what kind of publication is this? PDF?

Best wishes,
Sorin Carbunaru
Oxygen XML Editor
joyceclc23
Posts: 11
Joined: Wed Aug 06, 2025 9:31 am

Re: Reduce space between intro line and UL/OL items

Post by joyceclc23 »

Hi Sorin,
These are output from a PDF.
I can't seem to reduce the spacing between the heading and the body text.
julien_lacour
Posts: 707
Joined: Wed Oct 16, 2019 3:47 pm

Re: Reduce space between intro line and UL/OL items

Post by julien_lacour »

Hi,

You can remove the margin before the lists by adding the following CSS rule:

Code: Select all

*[class ~= "topic/ol"],
*[class ~= "topic/ul"] {
  margin-top: 0;
}
You can easily find the default rules and modify them by debugging the CSS.

Regards,
Julien
Post Reply