Substitution for display='table-cell' in IE 7
Posted
by Jeny
on Stack Overflow
See other posts from Stack Overflow
or by Jeny
Published on 2010-06-05T12:35:12Z
Indexed on
2010/06/05
14:42 UTC
Read the original article
Hit count: 157
Hi friends,
document.getElementById(id).style.display ='table-cell'
. This gives error message in IE, this is IE bug or any other solutions please give any other solutions.
IE7 doesn't support this property.
this is my coding. Even Firefox and Chrome are accepted. My problem is IE. Please friends give solution...
var cont2 = document.createElement('div');
cont2.style.display = "table-cell";
cont2.style.verticalAlign = "middle";
cont2.style.lineHeight = 100+"%";
cont2.style.padding = 10+"px";
cont2.appendChild(body);
© Stack Overflow or respective owner