Changing top and bottom margins for <choicetable>
Questions about XML that are not covered by the other forums should go here.
-
- Posts: 2
- Joined: Thu Mar 31, 2016 8:47 pm
Changing top and bottom margins for <choicetable>
I need to expand margins above and below <choicetable> for webhelp.
The oxygen > frameworks > dita > css > core > -task.css file provides these default margins:
My preferred margins are:
I added a task.css file with the preferred margins to oxygen > frameworks > dita > DITA OT > plugins > com.oxygenxml.webhelp > oxygen-webhelp > resources > css folder. I set the args.css to the path to the new task.css and set args.copycss to yes. I generated webhelp using the DITA Map Webhelp option. In the webhelp output, the task.css file with the preferred margins was in the out > webhelp > oxygen-webhelp > resources > css folder. However, choicetables in the webhelp topics appeared with the default margins.
How do I need to specify these <choicetable> margins to override the default margins?
Thank you for any advice or guidance you can provide.
The oxygen > frameworks > dita > css > core > -task.css file provides these default margins:
Code: Select all
*[class~="task/choicetable"] {
/* -task_step_child- >>> */
/* margin: 0.5em 0.5em 0.5em 4em; */
/* <<< */
}
Code: Select all
*[class~="task/choicetable"] {
/* -task_step_child- >>> */
/* margin: 4em 0.5em 4em 4em; */
/* <<< */
}
How do I need to specify these <choicetable> margins to override the default margins?
Thank you for any advice or guidance you can provide.
-
- Posts: 222
- Joined: Tue Jul 01, 2014 11:48 am
Re: Changing top and bottom margins for <choicetable>
Post by bogdan_cercelaru »
Hello,
To customize the elements generated by WebHelp transformation you should find the CSS selector needed to style it.
You can use the "Inspect" action in the Chrome browser (or "Inspect element" in Firefox) to do this. For example, for "choisetable" element you should use the ".choicetable" CSS selector.
Your custom CSS file should look like:
Note that it is not necessary to have your CSS file saved to oxygen > frameworks > dita > DITA OT > plugins > com.oxygenxml.webhelp > oxygen-webhelp > resources > css folder. It can be on your Desktop or any other location on your PC.
You should set the "args.css" parameter to point to the custom CSS file and also set the "args.copycss" parameter to "yes". The CSS file will be copied in the root directory of the output folder.
Regards,
Bogdan
To customize the elements generated by WebHelp transformation you should find the CSS selector needed to style it.
You can use the "Inspect" action in the Chrome browser (or "Inspect element" in Firefox) to do this. For example, for "choisetable" element you should use the ".choicetable" CSS selector.
Your custom CSS file should look like:
Code: Select all
.choicetable {
margin: 10px;
}
You should set the "args.css" parameter to point to the custom CSS file and also set the "args.copycss" parameter to "yes". The CSS file will be copied in the root directory of the output folder.
Regards,
Bogdan
Bogdan Cercelaru
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
Return to “General XML Questions”
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