html - CSS "page-break-after" on an undefined div -
i have search engine produces variety of widgets (each in it's own div), each time different amount of widgets.
when print results page widgets can cut in middle page break, , each widget inside page , not cut page break.
we tried:
@media print { .widget {page-break-after: always;} }
and cut of widget, each different page, not want. want page break happen if it's necesary. don't want make page-break specific widget because don't know 1 one has cut.
we tried:
@media print { .widget {page-break-after: avoid;} }
and didn't work. suggestions?
from sounds of want use:
.widget { page-break-inside: avoid; }
that push of widgets span page down next one.
Comments
Post a Comment