Answers for "make an drodown menu"

0

make an drodown menu

/*The css file*/
nav {
  background-color: black;
  max-width: 300px;
  margin: 10px;
}
nav li ul {
  visibility: hidden;
  height: 0;
}
nav > ul > li:hover ul {
	visibility: visible;
  	height: 100px;
  	width: 60px;
  	transition-delay: 0.5s;
}
Posted by: Guest on February-25-2021
0

make an drodown menu

<!--on the html document-->
<nav>
	<ul>
    	<li>
        <a href="#">Hello</a>
        	<ul>
            	<li>World!</li>
                <li>This is a dropdown</li>
            </ul>
        </li>
  </ul>
</nav>
Posted by: Guest on February-25-2021

Browse Popular Code Answers by Language