So I just love it when my application is working great in Firefox, but then I open it in IE and… Nope, please try again.
The issue I’m having is that I’m setting a CSS display property to either none or table-cell with JavaScript.
I was initially using display: block, but Firefox was rendering it weird without the table-cell property.
I would love to do this without adding a hack in the JavaScript to test for IE. Any suggestions?
Thanks.
A good way of solving this setting the
displayvalue to'':The empty value causes the style to revert back to it’s default value. This solution works across all major browsers.