“table-row” and “block” values for style.display in IE and Firefox

style.display = “block” for a table row in Firefox does not show row in proper format. For that use style.display = “table-row”. This shows row as a normal row like other rows of that table.
While in IE style.display = “block” works properly but style.display = “table-row” does not work.style.display = “block” for a table row in Firefox does not show row in proper format. For that use style.display = “table-row”. This shows row as a normal row like other rows of that table.
While in IE style.display = “block” works properly but style.display = “table-row” does not work. In javascript it generates error for this statement.
So how to make it working in both browsers. Simple solution is does not assign any value to display property and browsers shows it properly using default value. Simple write style.display= “” and it works in both browsers In javascript it generates error for this statement.
So how to make it working in both browsers. Simple solution is does not assign any value to display property and browsers shows it properly using default value. Simple write style.display= “” and it works in both browsers


Leave a Reply

 

You must be logged in to post a comment.

Site map | Blog
Copyright © 2008, COG IT Solutions Pvt. Ltd. All Rights Reserved
XHTML Validated