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
In the documentations I only see stylesheet for input (text, checkbox, radio) and textarea. Weird form type like input[type=range] would be hard to render in a quick-and-dirty way, I understand, but what about select?
I'm currently adding a option:checked next to input in my dedicated stylesheet, but the result doesn't look very good. All styles for select is lost because the actual element isn't rendered but only its selected option, but if I try to style select as well then select and option become separated as if they are different elements, with select being only a blank rectangular.
P.S. Is there a way to set a style to be used only for printing with WeasyPrint? Just in case if in the future I want to style the pages differently when they are printed versus when they are viewed online.
The text was updated successfully, but these errors were encountered:
P.S. Is there a way to set a style to be used only for printing with WeasyPrint? Just in case if in the future I want to style the pages differently when they are printed versus when they are viewed online.
You can use media queries to define css only for print @media print { your_css }
In the documentations I only see stylesheet for
input (text, checkbox, radio)
andtextarea
. Weird form type likeinput[type=range]
would be hard to render in a quick-and-dirty way, I understand, but what aboutselect
?I'm currently adding a
option:checked
next toinput
in my dedicated stylesheet, but the result doesn't look very good. All styles forselect
is lost because the actual element isn't rendered but only its selected option, but if I try to styleselect
as well thenselect
andoption
become separated as if they are different elements, withselect
being only a blank rectangular.P.S. Is there a way to set a style to be used only for printing with WeasyPrint? Just in case if in the future I want to style the pages differently when they are printed versus when they are viewed online.
The text was updated successfully, but these errors were encountered: