r/WebdevTutorials • • Feb 16 '20

Frontend Simple Dropdown Menu Hover

https://www.youtube.com/watch?v=fzG3w1ZxGdM
45 Upvotes

2 comments sorted by

0

u/ponix Feb 16 '20

Very nice and easy to follow

-1

u/frownonline Feb 16 '20

There's some good stuff here, but be aware of display:none; for accessibility [https://css-tricks.com/places-its-tempting-to-use-display-none-but-dont/]

Also, add a nice CSS rule to 'hint' of initially hidden content for usability:

nav a:not(:last-child)::after {content: ' ▾';}