> -----Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > discuss.org] On Behalf Of Tim Dawson > Sent: Monday, September 29, 2008 5:31 AM > To: css-d@lists.css-discuss.org > Subject: Re: [css-d] DOM-scripted content doesn't link toCSS in IE > > Gunlaug Sørtun wrote: > > Tim Dawson wrote: > > > >> The effect can be seen at > >> http://www.holidaymullandiona.co.uk/attr/carsaigarches.php but I've > >> had to cheat and put a CSS positioned paragraph into the regular > >> content. That way IE7 'sees' the CSS, and shows that there's nothing > >> wrong with the CSS per se. (Though there are some positioning quirks > >> I haven't quite sussed yet). > > > > I'd try adding a 'hasLayout' trigger to the containers, like so... > > > > div#txtcol div.ir, div#txtcol div.il {height: 1%;} > > > > Seems to have a "sobering" effect on IE's broken CSS engine when it hits > > your page, but I can't test how deep it goes. > > > > regards > > Georg > > Thanks Georg, that certainly worked for my 'cheating' solution without the > DOM-scripting, but it has done nothing for the DOM-scripted version.
Hi Tim, Are you using setAttribute() to plug class names? Because I ran into something like that not long ago and found out that the class was generated in IE, but the styles associated with it were not picked up. Going with className instead of setAttribute solved the problem for me. -- Regards, Thierry | http://www.TJKDesign.com ______________________________________________________________________ css-discuss [EMAIL PROTECTED] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http://css-discuss.incutio.com/ List policies -- http://css-discuss.org/policies.html Supported by evolt.org -- http://www.evolt.org/help_support_evolt/