Can't style the number of an ordered list, it always remains bold
Having trouble installing Oxygen PDF Chemistry? Got a bug to report? Post it all here.
-
- Posts: 2
- Joined: Thu May 24, 2018 11:36 pm
Can't style the number of an ordered list, it always remains bold
Post by mica-dptech »
Hello!
I'm trying to make the numbers in an ordered list a normal font weight, not bold.
I have the following in my CSS:
When I preview the merged.xml from the Chemistry output, the CSS has the proper effect, but when I view the PDF, the numbers are still bold.
I'm trying to make the numbers in an ordered list a normal font weight, not bold.
I have the following in my CSS:
Code: Select all
/* Make the ol numbers not bold */
*[class~="topic/ol"] > *[class~="topic/li"]:before {
font-weight: normal !important;
}
-
- Posts: 501
- Joined: Mon Feb 03, 2003 10:56 am
Re: Can't style the number of an ordered list, it always remains bold
Indeed, there is a difference: For the screen is used the :before pseudo element while for the print the :marker pseudo element.
You should use:
You should use:
Code: Select all
*[class~="topic/ol"] > *[class~="topic/li"]::marker {
font-weight:normal;
}
-
- Posts: 2
- Joined: Thu May 24, 2018 11:36 pm
Re: Can't style the number of an ordered list, it always remains bold
Post by mica-dptech »
Ah, that works, thanks Dan!
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