Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

IE8 Bug with @media print? Table border disappears on pages greater than 1

I have a page with an HTML table. When I use print preview in IE8, the table borders do not print starting on the 2nd page. So this is one and the same table, but it has a page break, and on the 2nd page there are no borders.

enter image description here

enter image description here

It seems to me that this ought to be a bug in IE that affects how the style sheets are applied across page breaks when @media print is used.

I will have to get to the bottom of this so that I can find a workaround. In the meantime, if somebody has seen this and know how to address it, please let me know.

like image 481
cdonner Avatar asked Apr 28 '11 15:04

cdonner


1 Answers

Geez, why do I always have to run into these things?

This CSS does not work and shows (causes?) the above behavior:

@media print {
    #container, form { position: absolute; }
}

This CSS works as expected, the borders show up fine:

@media print {
    #container { position: absolute; }
    form { position: absolute; }
}

???

like image 175
cdonner Avatar answered Sep 27 '22 17:09

cdonner