I just found the CSS @page directive and used it with :first to apply CSS to the first page of the html print. Is there a way to go the other way around and apply CSS to all pages except the first?
@page
:first
Use CSS3 :not() :
:not()
@page :not(:first) { }
If you need better browser compatibility, then the Donut solution for styling everything that "cancels" them for :first also works (based on specificity / cascade).
@page { /* Styles for everything but the first page */ } @page :first { /* Override with perhaps your stylesheet defaults */ }
If you use CSS2, you can do it indirectly. Use @page to set the style you want for all of your pages except the first, then use @page along with :first to βcancelβ these styles for the first page.
Can be done with javascript / jquery.
Negative CSS selectors
Source: https://habr.com/ru/post/1332800/More articles:Converting C ++ / CLI of an existing application makes managed code - c #Search for a new language that supports both interpreted and built-in compilation modes - programming-languages ββ| fooobar.comIs there a built-in function to sort and filter a python list in one step? - pythonCustom column filtering on server side DataTables - jqueryDo not compile t4 file - visual-studiohttps://translate.googleusercontent.com/translate_c?depth=1&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1332801/state-and-status-of-avalondock-options-to-avalondock&usg=ALkJrhgq0_blPCAfnO4NPSX1EQ0eV5Q-MAPost-hook hook for gitosis - gitListBox throws an ArgumentOutOfRangeException when added to a DataSource - c #Send Messages from AppEngine Locally - google-app-enginewhy use google v8 - v8All Articles