I think it's important to point out that drop down menus depending on :hover can be a problem in devices with touch interfaces (most smartphone, tablets, etc).
Best, Germán On Jan 18, 2011, at 8:17 PM, Matthew P. Johnson wrote: > -----Original Message----- > From: [email protected] > [mailto:[email protected]] On Behalf Of Tim Climis > Sent: Tuesday, January 18, 2011 5:15 PM > To: [email protected] > Subject: Re: [css-d] drop down vertical nav? > > On Tuesday, January 18, 2011 6:33:03 pm Matthew P. Johnson wrote: >> -----Original Message----- >> From: [email protected] >> [mailto:[email protected]] On Behalf Of Matthew P. >> Johnson Sent: Tuesday, January 18, 2011 3:31 PM >> To: [email protected] >> Subject: [css-d] drop down vertical nav? >> >> Can a drop down effect for a nav be created using pure css? >> >> >> >> Something like the following link without using any sort of script. >> >> >> >> http://jquery.bassistance.de/treeview/demo/?1 >> >> >> >> >> [Matthew P. Johnson] the graphics not necessary just the text and drop > down >> for sub nav's. > > No. The issue here is that CSS has no "after click" state. > > It could (in theory -- I haven't tried) do this if you wanted the folder to > extend when you hover over it (:hover), or when you tab on to it with the > keyboard (:focus) (including the graphics), but it can't do it on a click. > You need Javascript to catch the click and do something with it (ie switch > the > CSS from display: none to display: block). > > ---Tim > > [Matthew P. Johnson] That makes sense. Thank you. > > ______________________________________________________________________ > 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/ Germán Martínez, UX Designer http://martinez.pe ______________________________________________________________________ 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/
