Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html>
- <head>
- <meta name="viewport" content="width=device-width, initial-scale=1">
- <style>
- body{
- font-family: Arial, Helvetica, sans-serif;
- }
- .dropbtn {
- background-color: #cccccc;
- color: white;
- padding: 8px;
- font-size: 11px;
- border: none;
- }
- .dropdown {
- position: relative;
- display: inline-block;
- }
- .dropdown-content {
- display: none;
- position: absolute;
- background-color: #f1f1f1;
- min-width: 160px;
- box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
- z-index: 1;
- list-style-type: none;
- padding: 0;
- margin: 0;
- }
- .dropdown-content li {
- color: black;
- padding:0.3em;
- text-decoration: none;
- display: block;
- cursor: pointer;
- }
- .dropdown-content li:hover {background-color: #ddd;}
- .dropdown:hover .dropdown-content {display: block;}
- .dropdown:hover .dropbtn {background-color: #3e8e41;}
- </style>
- </head>
- <body>
- <!-- https://www.w3schools.com/howto/howto_css_dropdown.asp -->
- <div class="dropdown">
- <button class="dropbtn">V</button>
- <ul class="dropdown-content">
- <li>Link 1</li>
- <li>Link 2</li>
- <li>Link 3</li>
- </ul>
- </div>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement