styling a (sub-)chapter using a selector based on pagedjs_page[style*=''] prevents page to fit content #647
Unanswered
benoitrolland
asked this question in
Q&A
Replies: 2 comments 3 replies
-
You should not use It depends on what you want to achieve/style but I think you should use named pages: https://pagedjs.org/documentation/8-named-page/ |
Beta Was this translation helpful? Give feedback.
1 reply
-
In the provided examples, the only named page I could find is provided and not custom:
I think I could use the padjejs methodology from a web page, |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Styling the content of a given (sub-)chapter
can be done using a selector based on the
<h(1-N)>
node, using its[data-id="_subchaptername"]
attribute.If the style applied reduce the height of the content,
the content is well rechaped to fill the page by including next lines initially located on next page.
But the next page of the (sub-)chapter will not be styled since no
<h(1-N)>
node is avalaible there.The selector I found to match the whole sub-chapter is the following:
.pagedjs_page[style*='--pagedjs-string-last-current-sub-chapter:"Sub-Chapter Name";']
But using this selector doesn't result in next lines beeing included in previous page to fill the remaining space,
this result in
Would you be aware of such a problem and have an idea of
how to style a multi-pages sub-chapter having its content fiting the space available ?
Beta Was this translation helpful? Give feedback.
All reactions