| re: Pure CSS "div rollovers"
Tom Joyce <t.m.joyce@dunelm.org.uk> writes:[color=blue]
> Also sprach Kanuf <canwaf@rogers.com>:
> } On a page I am designing, I'm trying to create a "div rollover".
> } Basically, I want a div's contents to change (or a new div to replace
> } the old one) via hover.
>
> Would something like:
>
> <div id="foo>
> <div id="hover">
> stuff
> </div>
>
> <div id="not">
> other stuff
> </div>
> </div>
>
>
> #foo #hover {display: none;}
>
> #foo.hover #hover {display: block;}[/color]
#foo:hover, surely
[color=blue]
> #foo.hover #not {display: none;}[/color]
likewise
- works in Mozilla (1.4)
- doesn't work particularly well in Opera (7), on the first hover it
switches, but on unhover from then on neither is displayed,
- consistently displays #not in IE (6) and Konqueror (3).
Obviously in a non-CSS browser it just displays both.
I can see accessibility issues for this in a lot of situations, even
when it does work - combining Mozilla with a screen reader, for
instance.
--
Chris |