Hi Guys I have a problem that I hope you may be able to help me with. It seems to me that IE ignores the height tag if put inside <td> tags but firefox (and safari) does not. a simple code like this: <table border=1> <tr><td rowspan=2 width='50' height='200'>bla bla</td><td height='20'>top</td></tr> <tr><td>bottom</td></tr> </table> gives me two different things in IE and firefox, in firefox it looks correct in IE it does not. Is there a way to make it look like it does in Firefox in IE? I can post some screenshots of the difference if needed. Thanks
Can I do that and how? I mean one of the problem is that the first cell spans two rows. It seems to me that IE just basically ignores the height tag unless it's greater than 50% of the height of the table. In other words if I set the height tag to 150 (height=150) for the "Top" cell it grows in IE.. but refuses to be smaller than 50% of the total table height.
Or if you have several similar you can define that format table in the css file Code: table.parts { border-style: solid; border-width: 2px 1px 1px 2px; border-color: white black black white; background-color: #a9a9a9; } .parts td { background: white; font-size: 11px; [B]line-height: 100%;[/B] padding: 5px; } .parts th { background-color: #dcdcdc; font-size: 11px; font-weight: bold; text-align: left; [B]line-height: 120%;[/B] padding: 5px; }
Try this: Code: <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html;charset=utf-8" > <title>Title</title> </head> <body> <table border="1"> <tr> <td width="100" height="200" rowspan="2">bla bla</td> <td height="50">top</td> </tr> <tr> <td>bottom</td> </tr> </table> </body> </html> It's valid and should display properly. If not use xhtml and stick in a conditional statement for IE.
<table border=1> <tr> <td rowspan=2 width='50' height='200'>bla bla</td> <td >top</td> </tr> <tr> <td height='180'>bottom</td> </tr> </table> Declaring the height in the second row works in FF & IE7. You've already defined a height of 200 for the first row, looks like IE only accepts 1 height setting per row.