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

Popular posts from this blog

php - How to add and update images or image url in Volusion using Volusion API -

javascript - jQuery UI Splitter/Resizable for unlimited amount of columns -

javascript - IE9 error '$'is not defined -