I've started using div & span instead of tables wherever possible, and things were looking good until I tried printing one particular page. I have a print CSS file that's configured to just print the main content area of the page, and has page-break-before set to auto for a particular class of fieldset. So far so good.
However ... one area of the page contains a "table" made up of div & span tags ... a div for each "row" and a span for each cell. One of the cells takes up more vertical space than the others, and when it happens to fall close to a page printing boundary, this cell prints on page 2, and the remaining cells from the same row print on page 1.
I've tried all sorts of combinations of attributes in my print CSS file, all to no avail. Anyone any ideas?
TIA
Mike.
However ... one area of the page contains a "table" made up of div & span tags ... a div for each "row" and a span for each cell. One of the cells takes up more vertical space than the others, and when it happens to fall close to a page printing boundary, this cell prints on page 2, and the remaining cells from the same row print on page 1.
I've tried all sorts of combinations of attributes in my print CSS file, all to no avail. Anyone any ideas?
TIA
Mike.