I have been pulling my hair out trying to fix this stupid problem. Google isn't helping me, so I'm asking for help here!
I have a simple html table that is being built and populated with data using PHP. On this webpage, outside the php code, I have the following:
<style type="text/css" media="print,screen">
div {
height:10px;
overflow:hidden;
}
</style>
Then inside each <td> of the table, I surround the table contents with <div> and </div>. The purpose of this is to limit the table rows to 1 line of text, and cut off anything else.
This WORKS FINE when displaying the table on the screen in both IE and firefox. In firefox, it works fine when printing also.
BUT...
In IE, when I print, it wraps the cell contents and doesn't cut it off.
Does anyone have any ideas how to fix this?
Thank you in advance for any help you could provide!
I have a simple html table that is being built and populated with data using PHP. On this webpage, outside the php code, I have the following:
<style type="text/css" media="print,screen">
div {
height:10px;
overflow:hidden;
}
</style>
Then inside each <td> of the table, I surround the table contents with <div> and </div>. The purpose of this is to limit the table rows to 1 line of text, and cut off anything else.
This WORKS FINE when displaying the table on the screen in both IE and firefox. In firefox, it works fine when printing also.
BUT...
In IE, when I print, it wraps the cell contents and doesn't cut it off.
Does anyone have any ideas how to fix this?
Thank you in advance for any help you could provide!