I have a page where elements are dynamically created. I’ve run into problems with IE recognizing the classes for these elements that are defined in CSS. Namely, it doesn’t. (Firefox does).
The specific elements I’m referring to (and I’m sure the problem would apply to others) are <div> and <td>.
If the element was hard coded in, IE, recognizes its css class; it only gives problems if the element is created dynamically. I’ve found that the css is recognized by IE if it is defined by an id (div#(theID)) opposed to a class (div.(className)). This requires me to recopy all my css classes into css id definitions (which seems like bad practice) and to add ids to all my elements (which is also bad practice because an id is supposed to be specific to one element, right?)
Any thoughts on solving this IE problem in the best manner would be appreciated.
Thanks,
Vinay