.dropdown { position: relative; display: inline-block; } .dropdown-content { display: none; position: left; background-color: transparent; min-width: 100%; box-shadow: 0px 0px 0px 0px rgba(0,0,0,0.3); z-index: 1; } .dropdown-content a { color: transparent; padding: 12px 16px; text-decoration: none; display: block; } .dropdown-content a:hover {background-color: transparent;} .dropdown:hover .dropdown-content {display: block;} .dropdown:hover .dropbtn {background-color: transparent;}