Connecting Tech Pros Worldwide Help | Site Map

td display:block not working for internet explorer

Newbie
 
Join Date: Oct 2009
Posts: 1
#1: Oct 4 '09
Expand|Select|Wrap|Line Numbers
  1. <table>
  2.   <tr>
  3.     <td style="display:block">Cell 1</td>
  4.     <td style="display:block">Cell 2</td>
  5.   </tr>
  6. </table>
The above HTML displays the following in Fire Fox

Cell 1
Cell 2

However, in Internet Explorer 8 it displays the following:

Cell 1 Cell 2

Does anyone have any idea how to achieve Fire Fox's rendering without making any changes to the structure of the HTML except for styles?

I've spent more than a day trying to come up with a solution to this problem, and I must say I think I am going a bit demented at this stage.

Thanks,

Philip
drhowarddrfine's Avatar
Expert
 
Join Date: Sep 2006
Posts: 5,561
#2: Oct 4 '09

re: td display:block not working for internet explorer


It seems you may have uncovered a bug in IE8.
Reply


Similar HTML / CSS bytes