Is #transfer_head2
a TABLE
? If so, you need to use:
#transfer_head2 { display: table; }
Is it a TR
?
#transfer_head2 { display: table-row; }
Is it a TD
or a TH
? Then it's the following:
#transfer_head2 { display: table-cell; }
Note that those are not supported in IE6 or lower. In which case you might want to use something like the following:
@media screen {
#transfer_head2 { height: 1px; width: 1px; overflow: hidden; visibility: hidden; }
}
@media print {
#transfer_head2 { height: 60px; width: 468px; visibility: visible; }
}
EDIT: I forgot to specify this in my original post but keep in mind that most browser configurations have background printing disabled by default, so if you have something like the following in your CSS:
#transfer_head2 { background-image: url('../image/print_banner.jpg'); }
it will not print no matter what the display
mode. If you have control over the user's browser configuration, this is a non-issue, but in most cases, you will want to use an IMG
tag for your banner.