Να μη σβηστεί!

.dropbtn { background-color: #052634; color: white; padding: 6px; font-size: 12px; border: none; cursor: pointer; } .dropbtn:hover, .dropbtn:focus { background-color: #18758E; } .dropdown { position: relative; display: block; } .dropdown-content { display: none; position: absolute; background-color: #ffffff; min-width: 700x; overflow: auto; box-shadow: 0px 6px 10px 0px rgba(0,0,0,0.2); } .dropdown-content a { color: black; padding: 6px; font-size: 14px; text-decoration: none; display: block; } .show {display:block;} // Get the button, and when the user clicks on it, execute myFunction document.getElementById(“myBtn”).onclick = function() {myFunction()}; /* myFunction toggles between adding and removing the show class, which is used to hide and show the dropdown content */ function myFunction() { document.getElementById(“myDropdown”).classList.toggle(“show”); }

.dropbtn { background-color: #052634; color: white; padding: 6px; font-size: 12px; border: none; cursor: pointer; } .dropbtn:hover, .dropbtn:focus { background-color: #18758E; } .dropdown { position: relative; display: block; } .dropdown-content { display: none; position: relative; background-color: #ffffff; min-width: 700x; overflow: auto; box-shadow: 0px 6px 10px 0px rgba(0,0,0,0.2); } .dropdown-content a { color: black; padding: 6px; font-size: 14px; text-decoration: none; display: block; } .show {display:block;} // Get the button, and when the user clicks on it, execute myFunction document.getElementById(“myBtn”).onclick = function() {myFunction()}; /* myFunction toggles between adding and removing the show class, which is used to hide and show the dropdown content */ function myFunction() { document.getElementById(“myDropdown”).classList.toggle(“show”); }