Tryit Editor T4Tutorials.com
Edit This Code:
See Result »
<html> <head> <style> .dropdown-content { display: none; position: absolute; background-color: lightgrey; min-width: 160px; box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2); z-index: 1; } .dropdown-content a { color: purple; padding: 12px 16px; text-decoration: none; display: block; } .dropdown-content a:hover {background-color: red} .dropdown:hover .dropdown-content { display: block; } .dropdown:hover .dropbtn { background-color: brown; } </style> </head> <body> <img src="logo.jpg"/> <h2>Dropdown Menu:</h2> <p>Move the mouse over the button to open the dropdown menu.</p> <div class="dropdown"> <button class="dropbtn">Dropdown</button> <div class="dropdown-content"> <a href="https://t4tutorials.com/html"/>HTML</a> <a href="https://t4tutorials.com/css-tutorials/">CSS</a> <a href="https://t4tutorials.com/keyword-worth-check-in-seo-search-engine-optimization"/>SEO</a> </div> </div> </body> </html>
Result: