How to customize the appearance of specific elements in WebHelp output?
Questions about XML that are not covered by the other forums should go here.
-
- Posts: 1
- Joined: Thu Jun 05, 2025 10:22 am
How to customize the appearance of specific elements in WebHelp output?
I'm using Oxygen XML Editor 26.1 and generating WebHelp Responsive output from my DITA topics. I would like to customize the appearance of a specific element, say <note type="tip">, so that it looks visually different (e.g., with a custom icon and background color).
I've tried adding CSS in the customization folder (resources/css/custom.css), like this:
But the changes don’t seem to take effect in the output. Am I missing a step in referencing the custom CSS, or should I override a different class name?
Any suggestions or best practices for customizing the WebHelp layout for individual DITA elements?
I've tried adding CSS in the customization folder (resources/css/custom.css), like this:
Code: Select all
.note.tip {
background-color: #e6f9ff;
border-left: 5px solid #00b8d9;
padding: 10px;
}
Any suggestions or best practices for customizing the WebHelp layout for individual DITA elements?
-
- Posts: 679
- Joined: Wed Oct 16, 2019 3:47 pm
Re: How to customize the appearance of specific elements in WebHelp output?
Post by julien_lacour »
Hello,
I assume by "customization folder" you mean publishing template, have you declared the new stylesheet as a CSS resource?
Regards,
Julien
I assume by "customization folder" you mean publishing template, have you declared the new stylesheet as a CSS resource?
Code: Select all
<publishing-template>
<webhelp>
<resources>
...
<css file="resources/css/custom.css"/>
...
</webhelp>
</publishing-template>
Julien
Return to “General XML Questions”
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ Artificial Intelligence (AI Positron Assistant add-on)
- ↳ 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