Re: [css-d] IE7 bug with inheritance
Gabriele Romanato wrote: Please read the latest two posts on IE7 on my blog and tell me if I stumbled on something that's well-documented or not. Can you please provide a URL that demonstrates the issue in the simplest possible context? Can you make up a static test? It depends on what the problem is. Can't you make up a static test of the problem you have in your mind? I used JavaScript to create spans in the following structure: ul id=navigation lia href=spanLink/span/a/li /ul Try to apply some styles to :hover: nothing happens to links, but they maintain the same styles specified before. thanks in advance. What happens if you test with the markup above on a static HTML page? If the problem occurs only with JavaScript-generated elements, maybe the problem is in JavaScript code (which might even fail to generate the structure you expect it to generate). The issue might be something else on your page, like any CSS rule setting properties for the span element. If you set color for it, it won't inherit color from its parent, of course. -- Yucca, http://www.cs.tut.fi/~jkorpela/ __ css-discuss [cs...@lists.css-discuss.org] 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/
[css-d] IE7 bug with inheritance
Hi all! Please read the latest two posts on IE7 on my blog and tell me if I stumbled on something that's well-documented or not. Can you make up a static test? I used JavaScript to create spans in the following structure: ul id=navigation lia href=spanLink/span/a/li /ul Try to apply some styles to :hover: nothing happens to links, but they maintain the same styles specified before. thanks in advance. ps. the solution is to specify styles for the span elements. G. ^^ http://www.css-zibaldone.com http://www.css-zibaldone.com/test/ (English) http://www.css-zibaldone.com/articles/ (English) http://onwebdev.blogspot.com/ (English) __ css-discuss [cs...@lists.css-discuss.org] 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] IE7 bug with inheritance
Gabriele Romanato wrote: Hi all! Please read the latest two posts on IE7 on my blog and tell me if I stumbled on something that's well-documented or not. Can you make up a static test? I used JavaScript to create spans in the following structure: ul id=navigation lia href=spanLink/span/a/li /ul Try to apply some styles to :hover: nothing happens to links, but they maintain the same styles specified before. thanks in advance. ps. the solution is to specify styles for the span elements. G. ^^ Hello Gabriele. This is only one of the solutions. IE7 has trouble with :hover when an element does not have hasLayout. You didn't mention which element the hover transition is applied too. Is it the li or the a? What styles for the span element is needed for your solution? The below hasLayout trigger could be another solution. *:first-child+html #navigation a, *:first-child+html #navigation span { min-height:1%; } Here are some explanations. http://www.satzansatz.de/cssd/onhavinglayout.html#link http://www.brunildo.org/test/IEABlock1.html http://www.brunildo.org/test/IEul1.html -- Alan http://css-class.com/ Armies Cannot Stop An Idea Whose Time Has Come. - Victor Hugo __ css-discuss [cs...@lists.css-discuss.org] 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/