views:

34

answers:

1

I'm having a table and i have a row which is initially set to the display property of 'none'

and i changing it to 'block' at some selection of value from my select box , at that point of time the row is not aligned properly. My two columns are set inside a single column of the above row?

but when i change it again to 'none' all the other rows are aligned correctly..

+3  A: 

Instead of changing it to display:block; use display:table-row;.

Example here.

Code:

<table width="200" border="1">

  <tr style="display:table-row;">
    <td><span class="A">8:00 AM</span></td>
    <td><span class="B">Monday</span></td>
    <td><span class="C">Sept</span></td>
  </tr>

</table>​
Kyle Sevenoaks
This property worked great.. I tried it while learning a long time ago. Have to remember those things... :)
kvijayhari
I forget stuff all the time, easily done :)
Kyle Sevenoaks