I am having an issue with Internet Explorer (6,7).
Objects I create within JS (so appendChild) or ajax(even using
innerHTML) do not take the styles assigned to them in internet
explorer. Works fine in firefox but in IE the styles will not apply.
Even if I use setAttribute('style', 'whatever the styling is'). Is this
a known issue and are there any workarounds?
Thanks
var myDiv = document.createElement("div");
myDiv.className = "bigFatText";
myDiv.style.backgroundColor = "red";
myDiv.innerHTML = "foo";
document.body.appendChild(myDiv);
On 1/25/07, dot_txt <teranetsecur@gmail.com> wrote:
> I am having an issue with Internet Explorer (6,7).
> Objects I create within JS (so appendChild) or ajax(even using
> innerHTML) do not take the styles assigned to them in internet
> explorer. Works fine in firefox but in IE the styles will not apply.
> Even if I use setAttribute('style', 'whatever the styling is'). Is this
> a known issue and are there any workarounds?
> Thanks