You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When my content is filled in, the page automatically paginates, but I need the first and second pages to have different styles. How can I achieve this?
Vivliostyle.js supports the ::nth-fragment() pseudo-element. So you can use it to apply different styles to the first and second pages. For example, you can use the following CSS:
By the way, I found a typo in your CSS code: text-transform: uppercasse; should be text-transform: uppercase;.
Also, I think <script src="../../../dist/paged.polyfill.js"></script> is unnecessary in the HTML code. Vivliostyle.js tries to handle scripts but it may cause unexpected results.
I want to set a different style for the same element on the first page compared to the other pages, but the following approach doesn't seem to work.
bug
code.txt
The text was updated successfully, but these errors were encountered: