I have a <table>
on my web page. On Google Chrome the <table>
is well displayed. It has a padding on left and right. When I print the page it is well displayed also. It fits on paper. But when I try to open the page in Internet Explorer or Mozilla Firefox the <table>
does not fit. There is no padding-right and the last column is displayed half. Also when I print the page the last column is printed half.
Does someone know how I can fix this problem?
Here is the CSS of my <table>
table.inventory { clear: both; border: 0px; line-height: 1.2;width: 100%; padding-left:20px; padding-right:20px;font-size: 85%;}
table.inventory th { font-weight: bold; border: 0px;line-height: 1.2;text-align: left; }
table.inventory td:nth-child(1) { border: 0px;line-height: 1.2;width: 47.5%; }
table.inventory td:nth-child(2) { border: 0px;line-height: 1.2;width: 12.5%; }
table.inventory td:nth-child(3) { border: 0px;line-height: 1.2;text-align: right; width: 15%; }
table.inventory td:nth-child(4) { border: 0px;line-height: 1.2;text-align: right; width: 12.5%; }
table.inventory td:nth-child(5) { border: 0px;line-height: 1.2;text-align: right; width: 12.5%; }