DITA to PDF output - Alternate Header
Post here questions and problems related to editing and publishing DITA content.
-
- Posts: 9
- Joined: Tue Jun 29, 2021 2:27 pm
DITA to PDF output - Alternate Header
Post by Pandounours »
I read the documentation here: https://www.oxygenxml.com/doc/versions/ ... s_css.html
Default Page
The default page imposes a header that contains the publication title, chapter, and section title. They alternate on the left or right side of the page:
How do I get the header to stay in the same position?
Someone has a solution to have a background on the header and footer ?
Default Page
The default page imposes a header that contains the publication title, chapter, and section title. They alternate on the left or right side of the page:
How do I get the header to stay in the same position?
Someone has a solution to have a background on the header and footer ?
-
- Posts: 665
- Joined: Wed Oct 16, 2019 3:47 pm
Re: DITA to PDF output - Alternate Header
Post by julien_lacour »
Hello,
You will find more information in our user-guide together with some How-To topics.
https://www.oxygenxml.com/doc/versions/ ... nd_footers
You can also check the topic about How To Debug the CSS.
If you want both left and right headers to be the same, you can check and keep the rule that interests you (for example the right footer) and set it for the left footer using the :left pseudo-class. Also make sure your new rule override the default left rule by setting for example display: none on unnecessary page margin boxes.
Regards,
Julien
You will find more information in our user-guide together with some How-To topics.
https://www.oxygenxml.com/doc/versions/ ... nd_footers
You can also check the topic about How To Debug the CSS.
If you want both left and right headers to be the same, you can check and keep the rule that interests you (for example the right footer) and set it for the left footer using the :left pseudo-class. Also make sure your new rule override the default left rule by setting for example display: none on unnecessary page margin boxes.
Regards,
Julien
-
- Posts: 9
- Joined: Tue Jun 29, 2021 2:27 pm
Re: DITA to PDF output - Alternate Header
Post by Pandounours »
Thanks, it work well. And for background color ? Any idea ?
-
- Posts: 665
- Joined: Wed Oct 16, 2019 3:47 pm
Re: DITA to PDF output - Alternate Header
Post by julien_lacour »
Hello,
For this you also need to use the page margin boxes, like this:
If the color does not appear, it means that the content of the page margin box is empty, you can correct that by adding
In the CSS rule (for the corners for example).
Regards,
Julien
For this you also need to use the page margin boxes, like this:
Code: Select all
@page {
@top-left {
background-color: red;
}
}
Code: Select all
content: "";
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