3 Votes Vote

CSS in IE8 not rendering but FF does...

Posted by topdog 748 days ago Questions| css javascript rendering All
Hi all.
I hope this is a really simple one:

I have a php page that has nothing on it apart from the javascript and CSS files to load in the header.

The javascript does all the work for the page (ajax) EG creating the layout etc.

So in this javascript file I have a few divs created on the fly from input from a DB.
These divs are then classed (
CODE
divTag_open.className="Open";
).

My CSS has the following:
CODE
.Open
{
color:#FF0033;
}


But the text inside these divs will never be coloured as they should.
In FF it works but not IE8 (not tested in 7), if I create a test div in the php file this will be rendered correctly.

I can post more code on request, just wondering if this is a known "gotta ya".


Jon.
Discuss Bury


Who Voted for this Question