Web Designing, Web Development, Website Design, Website Development, SEO

0091 98233 72069

COGS: CUSTOMISED, OPTIMISED, GENERALISED WEB DESIGN & WEB DEVELOPMENT SOLUTIONS

“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