Thierry Koblentz wrote: >> -----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. > > Hello Thierry,
Yes, I was using 'para.setAttribute("class","cr");' I've changed it to 'para.className = "cr";' and it's done the trick. The text now appears about 10px below its FF3 position, but I can work on that. I'm a bit dubious about using the 'alt' or 'title' attribute (of 'img') for this purpose, it's probably frowned on by the standardistas. Title produces the tooltip, too, which is undesirable. Many thanks. Tim ______________________________________________________________________ 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/