Swap out note icons
Having trouble installing Oxygen PDF Chemistry? Got a bug to report? Post it all here.
-
- Posts: 156
- Joined: Sat Feb 26, 2005 12:09 am
- Location: USA
- Contact:
Swap out note icons
Post by shudson310 »
Hello,
I'm trying to swap out the default note icons. I used an override, but I get duplicate label and icons.
Here's my code:
This looks right, but why am I getting the duplication?
I'm trying to swap out the default note icons. I used an override, but I get duplicate label and icons.
Here's my code:
Code: Select all
*[class ~= "topic/note"]:before {
content: url('../../images/myNote.png') " Note: " !important;
font-family: 'Arial Unicode MS Bold', sans-serif;
font-weight: bold;
font-style:normal;
image-resolution: 300dpi;
}
Scott Hudson
Staff Content Engineer
Site: docs.servicenow.com
Staff Content Engineer
Site: docs.servicenow.com
-
- Posts: 846
- Joined: Mon Dec 05, 2011 6:04 pm
Re: Swap out note icons
Hi Scott,
There is a second "Note: " text that comes from the HTML transformation.Its actually contained by a <span/> element.
You can better notice this if you open the .merged.xml file resulted in the output folder during the transformation in a internet browser and use the browser's CSS inspector to inspect the applied styles.
You can find detailed information as well as more tips related to debugging the CSS applied to style the output in this section our User-Guide.
I suggest you should take a look at this section whenever the resulted styling in your PDF does not match your expectations.
In this particular case, you should just hide the "Note: " text coming from HTML, by using an additional rule in your custom CSS:
Regards,
Costin
There is a second "Note: " text that comes from the HTML transformation.Its actually contained by a <span/> element.
You can better notice this if you open the .merged.xml file resulted in the output folder during the transformation in a internet browser and use the browser's CSS inspector to inspect the applied styles.
You can find detailed information as well as more tips related to debugging the CSS applied to style the output in this section our User-Guide.
I suggest you should take a look at this section whenever the resulted styling in your PDF does not match your expectations.
In this particular case, you should just hide the "Note: " text coming from HTML, by using an additional rule in your custom CSS:
Code: Select all
.note__title{
display:none;
}
Costin
Costin Sandoi
oXygen XML Editor and Author Support
oXygen XML Editor and Author Support
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