Forum Moderators: not2easy

Message Too Old, No Replies

Visual Filters not working in IE

After changing the doctype to full version

         

milanmk

2:23 pm on Feb 28, 2007 (gmt 0)

10+ Year Member



After reading these threads (What's Your Doctype? [webmasterworld.com] and Choosing the best doctype for your site [webmasterworld.com]) I changed doctypes of all the pages from HTML 4.01 Transitional half version to full version. I happily removed many of the cross browser hacks and the site was looking almost the same in IE, Opera and Firefox.

Thank you very much SuzyUK and encyclo for giving such valuable insight regarding CSS support through doctypes.

Now the only thing that is not working right is Visual Filters in IE. If I add a static style then it is working perfectly fine but when I apply a dynamic style like in the following example then it will not work.

obj.innerHTML = "<span id='test' style='filter: blur(add=0,direction=90,strength="+BlurStrength+");'>"+BlurMsg+"<\/span>";

BlurStrength and BlurMsg are dynamically generated variables.

Is there anything I can do to make it work with the full version of doctype?

Milan

milanmk

6:07 pm on Mar 10, 2007 (gmt 0)

10+ Year Member



Got it solved, finally.

The problem was IE's concept of hasLayout that I solved by adding "display: inline-block;".

obj.innerHTML = "<span id='test' style='display: inline-block; filter: blur(add=0,direction=90,strength="+BlurStrength+");'>"+BlurMsg+"<\/span>";

I hope this will help someone out there.

Milan