[Javascript] table with display:block issue in FF

David Dorward david at dorward.me.uk
Mon Sep 17 04:19:09 CDT 2007


On 17 Sep 2007, at 10:12, Nagendra Oleti wrote:

> <table border="0" width="100%" style='border: 1px solid black;  
> display:block'>
Firefox implements the CSS 2 spec and expects tables to be display:  
table.

I suspect an anonymous display: table box is being generated to hold  
your table rows.

Use class names instead of inline style and have display: table in  
the main stylesheet and display: block in an IE specific stylesheet,  
or if you are using inline style then toggle between foo.display =  
'none' and foo.display = ''.


-- 
David Dorward
http://dorward.me.uk/
http://blog.dorward.me.uk/





More information about the Javascript mailing list