|
Posted by Jonathan N. Little on 09/16/05 16:35
Alan J. Flavell wrote:
>
> On Fri, 16 Sep 2005, Jonathan N. Little wrote:
>
>
>>nickolas80@gmail.com wrote:
>>
>>>Since IE apparently only supports Hover on A: (links), is there any
>>>way, using CSS to get a background color changing effect on a DIV or TD?
>>>
>>
>>1. Javascript
>>2. Put a link in it
>>3. Pin you hopes and dreams on that IE7 will support it ;-)
>
>
> Speaking to your point (2): is there, in fact, a way to get the properties
> of a "DIV or TD" to change by "putting a link in it"? Some properties are
> only applicable to a block-level element, which the "a" element is not.
> Presumably if you want those properties to be changed by hover in IE,
> using your method (2), you'd have to transfer the properties in question
> to the "a" element *and* change the "a" to "display: block". Any chance
> of a practical demonstration of that in action, please?
As to #2 you cannot get IE to hover thoses elements, so use a link,
adjust style to fill container, set the links background to simulate the
effect. Didn't say it was ideal but it is 'doable'
> But there /is/ a fourth option:
>
> 4. Conclude that CSS is designed to be optional, and IE simply chooses not
> to take this particular option. "Working as designed".
>
Or MS is neither concerned with supporting a spec that they do not have
patent control of nor making we designers life a bit easier! ;-)
--
Take care,
Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
Navigation:
[Reply to this message]
|