Need to change font in the TOC Title
Post here questions and problems related to editing and publishing DITA content.
-
- Posts: 26
- Joined: Thu Jan 29, 2015 2:40 am
Need to change font in the TOC Title
Hi there, I've used the Styles Basket, and tried to fix this on my own, but I cannot seem to affect the font of the Table of Contents TITLE, which stubbornly remains in the wrong font. I'm using the DITA Map PDF based on HTML5 and CSS but I'm using the Bookmap rather than a DITAMap.
I asked about this in today's webinar, but forgot to mention that I am using a Bookmap. The answer provided was this:
But this did NOT work.
Can you advise how I can change the font of the TOC Title to the font I want?
Thanks!
I asked about this in today's webinar, but forgot to mention that I am using a Bookmap. The answer provided was this:
Code: Select all
*[class~="toc/toc-title"] {
font-family: 'Literata', serif; <-- (I put in the font I wanted)
}
Can you advise how I can change the font of the TOC Title to the font I want?
Thanks!
Toolie Garner
-
- Posts: 667
- Joined: Wed Oct 16, 2019 3:47 pm
Re: Need to change font in the TOC Title
Post by julien_lacour »
Hello,
The correct selector is the following one:
Also you need to check that the font is installed on your machine or imported in your CSS stylesheet.
For more details about Fonts, please check the documentation.
Regards,
Julien
The correct selector is the following one:
Code: Select all
*[class~="toc/title"] {
font-family: 'Literata', serif;
}
For more details about Fonts, please check the documentation.
Regards,
Julien
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