Edit This Code:
<!DOCTYPE html>
<html>
<title>W3.CSS</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="../lib/w3.css">
<body class="w3-container">

<h2>Dropdown Menu</h2>
<p>Hover over "Link A" to open the dropdown menu.</p>

<div class="w3-topnav w3-orange">
  <div class="w3-dropdown-hover">
    <a href="tryit.asp-filename=tryw3css_ref_dropdown_menu.html#">Link A</a>
    <div class="w3-dropdown-content w3-card-4">
      <a href="tryit.asp-filename=tryw3css_ref_dropdown_menu.html#">Link 1</a>
      <a href="tryit.asp-filename=tryw3css_ref_dropdown_menu.html#">Link 2</a>
      <a href="tryit.asp-filename=tryw3css_ref_dropdown_menu.html#">Link 3</a>
    </div>
  </div>
  <a href="tryit.asp-filename=tryw3css_ref_dropdown_menu.html#">Link B</a>
  <a href="tryit.asp-filename=tryw3css_ref_dropdown_menu.html#">Link C</a>
</div>

</body>
</html>


Result:
Try it Yourself - © w3schools.com
Privacy Policy