Sent by Andy Smith on 27 May 2004 10:10
David Dorward wrote:
> You are setting it to display: block. It should be display: table-row.
The problem is that Mozilla (correctly) requires display: table-row to get
an element to act as a table row, but Internet Explorer doesn't understand
it and will only render an element as a table row if it's a TR with display:
block (or maybe anything it recognises apart from display: none, but
display: table-row doesn't work).
If there are any visible rows to start with on your page, you can get round
this problem by finding out what display value the browser uses for visible
table rows, and using that in future. Peter Paul-Koch has a cross-browser
getStyle function at <http://www.quirksmode.org/dom/getstyles.html> - if you
can use this to get the display property of a visible row, it will return
'table-row' or 'block' or whatever else the browser might require for table
rows. Then to show a hidden row, use this value.
Andy
______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/