[css-d] Help me about IE opacity for texts
Hi, I really want to know that if I can set some sentences transparent in an article using IE filter opacity. For example, aa link/a or spansentence/span. I can do this using opacity in FireFox very easily. But this is not the case for IE. I know I need to give a position to the block elements for filter like float:left. But this will destroy the structure of the article. And some of the words in those sentences will be difference sizes so I can't just set the width for the elements. Is there any method to use IE filter without positioning? Just like FireFox does. I've been searching for the solutions for couple of days but still no clues. Can somebody help me? Or maybe this is one of the unsolvable problems of IE family. I'm using IE6. Best Regards, Ethan __ 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/
Re: [css-d] Help me about IE opacity for texts
On Fri, 14 Sep 2007 17:42:53 +0800, Ethan wrote: Hi, I really want to know that if I can set some sentences transparent in an article using IE filter opacity. For example, aa link/a or spansentence/span. I can do this using opacity in FireFox very easily. But this is not the case for IE. I know I need to give a position to the block elements for filter like float:left. [...] Odd. I did an experiment with experiment that seems to work in IE6. I *did* use positioning, but not for the element with opacity. In order to layer some text over the semi-opaque element I used relative positioning to prevent the opacity setting affecting the text itself. The element carrying opacity is positioned statically. All CSS in the HEAD section: http://webwiz.robinshosting.com/temp/opacity/ Cordially, David -- __ 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/
Re: [css-d] Help me about IE opacity for texts
Ethan wrote: I really want to know that if I can set some sentences transparent in an article using IE filter opacity. For example, aa link/a or spansentence/span. I can do this using opacity in FireFox very easily. But this is not the case for IE. I know I need to give a position to the block elements for filter like float:left. But this will destroy the structure of the article. In order for IE filters to work the element they are applied to must have hasLayout [1]. Try to find an hasLayout trigger with no (or acceptable) side effects for your case: You mentioned that you cannot use float or assign a width, then try zoom:1 Hth, Bruno [2] http://www.satzansatz.de/cssd/onhavinglayout.html#filter -- Bruno Fassino http://www.brunildo.org/test __ 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/