How to change the margins for the Procedure task label?
Post here questions and problems related to editing and publishing DITA content.
-
- Posts: 40
- Joined: Tue Oct 30, 2018 10:49 am
How to change the margins for the Procedure task label?
Hello,
I am using Oxygen XML Editor version 21.1 to generate PDF output with the 'DITA Map PDF - based on HTML 5 & CSS' transformation.
I am using the 'args.gen.task.lbl' parameter to display the task labels (Procedure, Results, What to do next, etc.) in my PDF output.
I successfully changed the margins for the 'Before you begin' and 'What to do next' labels using these css settings:
How can I change the margins for the 'Procedure' label? I need to do that for the steps and the steps-unordered elements. Both are sometimes used with a stepsection element before the first step element. I need to change the margins for all cases.
I tried several combinations, but none of them has any effect. For example:
or
Could you point me to the correct css element?
Thanks and best regards,
Tanja
I am using Oxygen XML Editor version 21.1 to generate PDF output with the 'DITA Map PDF - based on HTML 5 & CSS' transformation.
I am using the 'args.gen.task.lbl' parameter to display the task labels (Procedure, Results, What to do next, etc.) in my PDF output.
I successfully changed the margins for the 'Before you begin' and 'What to do next' labels using these css settings:
Code: Select all
*[class ~= "task/prereq"] > .tasklabel {
margin-top:0.8em;
margin-bottom:0.3em;
}
*[class ~= "task/postreq"] > .tasklabel {
margin-top:0.8em;
margin-bottom:0.3em;
}
I tried several combinations, but none of them has any effect. For example:
Code: Select all
*[class ~= "task/steps"] > *[class ~= "task/stepsection"] > .tasklabel {
margin-top:0.8em;
margin-bottom:0.3em;
}
Code: Select all
*[class ~= "task/steps"] > .tasklabel {
margin-top:0.8em;
margin-bottom:0.3em;
}
Thanks and best regards,
Tanja
-
- Posts: 501
- Joined: Mon Feb 03, 2003 10:56 am
Re: How to change the margins for the Procedure task label?
Hello,
For debugging your CSS we recommend using the development tools from a browser. (You can open the .merged.html file from the output folder in the browser.) See: https://www.oxygenxml.com/doc/versions/ ... ng_the_css
Please use a selector that matches all task labels, and remove the default margin-top (1em) that exists for the ol element (the tasks are transformed in an ol, or ul if not ordered).
Many regards,
Dan
For debugging your CSS we recommend using the development tools from a browser. (You can open the .merged.html file from the output folder in the browser.) See: https://www.oxygenxml.com/doc/versions/ ... ng_the_css
Please use a selector that matches all task labels, and remove the default margin-top (1em) that exists for the ol element (the tasks are transformed in an ol, or ul if not ordered).
Code: Select all
div.tasklabel {
margin-top:0.8em;
margin-bottom:0em;
}
div.tasklabel + ol,
div.tasklabel + ul {
margin-top:0em;
}
Dan
Return to “DITA (Editing and Publishing DITA Content)”
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service