I am creating a dropdown menu for my blog and found a really helpful code from CSS-Tricks long dropdown solutions. It makes the menu scroll up and down on hover really great.
I tried changing some HTML and CSS but I can't make it work. Does it require changing the markup and CSS? Is there a way I can implement the code on my menu that doesn't have <ul>
and <li>
properties? What changes should I make to make the code work? Please give me some instructions on how to do it - that code is really wonderful.
<div class="dropdown">
<button class="dropbtn">Navigation</button>
<div class="dropdown-content">
<a href="List 1">1</a>
<a href="List 2">2</a>
<a href="List 3">3</a>
</div>
</div>
and adding- properties. I tied copying the one from codepen and it ddn;t work, it gave messy menu list.