CSS-based DITA to PDF problem with columns
Post here questions and problems related to editing and publishing DITA content.
-
- Posts: 11
- Joined: Thu Jul 06, 2023 5:31 pm
CSS-based DITA to PDF problem with columns
Hello everyone,
I created a document with a two-column attribute set like this:
Everything works fine, except the fact that when I use column-span: all for h1 (topic title) the first column starts much lower than expected. Any idea what could be wrong? I can't figure out what is the problem. Thanks.
I created a document with a two-column attribute set like this:
Code: Select all
*[class ~= "topic/topic"][outputclass ~= "two-columns"] {
page: two-columns
}
@page two-columns{
font-size: 10pt;
column-count: 2;
column-gap: 0.1in;
line-height: 1em;
}
pic.png
/WojtekYou do not have the required permissions to view the files attached to this post.
Wojtek
-
- Posts: 667
- Joined: Wed Oct 16, 2019 3:47 pm
Re: CSS-based DITA to PDF problem with columns
Post by julien_lacour »
Hello Wojtek,
You can add the vertical-align property in the topic rule to fix the display:
Regards,
Julien
You can add the vertical-align property in the topic rule to fix the display:
Code: Select all
*[class ~= "topic/topic"][outputclass ~= "two-columns"] {
page: two-columns;
vertical-align: top;
}
@page two-columns {
font-size: 10pt;
column-count: 2;
column-gap: 0.1in;
line-height: 1em;
}
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