Previous Message
Next Message

Re: [css-d] div:hover?

Sent by Lachlan Cannon on 12 June 2002 01:01


Eric A. Meyer said:
> Very cool!  The tricky part for CSS is the
> click-to-expand/collapse, which I don't know that browsers will do.  It
> all depends on how far :focus has been extended.  If I can write,  for
> example:
>
>    li:focus > ul {display: block;}

Would an alternative way of keeping it up be to extend the submenus a few
pixels onto the original menus and then have it stay up on either

li:hover > ul {display: block;} or li > ul:hover {display: block;} ?

In fact, if that worked it would be very cool to combine the both. I know
people who use cascading menus either way - click or hover. (Heh.. cascading
menus with cascading style sheets).

>>But it
>>would be glorious to be able to take a given HTML structure and turn it
>>into a dropdown list or an explorer-style tree just by applying
>>different stylesheets, wouldn't it?
>
>    Indeed it would.  If we can have the ability to use focus as
> described above (I have to try it tomorrow) I'm close to positive you
> could do this without the Javascript.
>    Incidentally, I've uploaded a new version of the menus demo,
> having converted everything in it to use lists instead of DIVs.  That
> approach is much more clean, and I took advantage of the flexibility
> by creating two different "skins" for what is essentially the same
> menu...
>   CSS just continues to amaze and delight me.  No wonder I still love
> working with it after all these years!

Very cool stuff Eric. I'm sure you'll continue to come up with CSS to amaze
and delight us for years too. Now all I need is a copy of Moz 1.0 so that I
don't have to hover over borders to see the submenu like I do in Ns6.2..
hmm. Curse my limited monthly download!

Lach
--------------------------------------
http://members.evolt.org/luminosity/
MSN: luminosity @ members.evolt.org
--------------------------------------
Previous Message
Next Message

Message thread:

Possibly related: