Mark Senff wrote:
> Hey all,
> 
> Here's one of those stupid problems again.... Let's say my DIV
> structure is like this:
> 
> <div id="mainBlock"> <div id="menuBlock">menu goes here,
> blablabla</div> </div>
> 
> For a specific reason, I want to use a PNG file with alpha
> transparency as the background of the main block. To make that work
> in IE6, I used a method that includes this .HTC file, which is this
> line in my CSS file
> 
> div#pageBlock {behavior: url('/iepngfix.htc');}
> 
> However, for the menu block, I do NOT want to use that behavior
> (since it's with mouseover/hovers and dropdowns and Suckerfish and
> all, it doesn't work if that particular behavior is applied to it).
> How do I override it again with the default behavior so that for the
> menu DIV, it will NOT use the iepngfix.htc? Is that at all
> possible....?
> 
> Thanks many, mS
> 

Your mix of pageblock, menublock and mainblock is a little confusing to me.

Just time consuming guesswork without a URL, but I think the behavior 
itself is not inherited by the inner block.

http://www.twinhelix.com/css/iepngfix/demo/iepngfix.htc

In the last lines of this script, Angus Turnbull tried to fix the 
filter+link problem by positioning all of the child node links 
relatively. Maybe your "mouseover/hovers and dropdowns and Suckerfish 
and all" break because of this relative positioning.

Anyway, I think you should drop that behavior in your case. Try to 
insert a standard alphatranspary filter hack ...

http://www.satzansatz.de/cssd/tmp/alphatransparency.html

Ingo

ps: ... but let me know if commenting out these lines in the htc-file 
would fix the problem, too

// IE link fix.
//  for (var n = 0; n < childNodes.length; n++)
//   if (childNodes[n].style) childNodes[n].style.position = 'relative';
-- 
http://www.satzansatz.de/css.html
______________________________________________________________________
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/

Reply via email to