diff --git a/css/styles.css b/css/styles.css index 7589859..7041fd4 100644 --- a/css/styles.css +++ b/css/styles.css @@ -255,3 +255,37 @@ p { .sidenav {padding-top: 15px;} .sidenav a {font-size: 18px;} } + +.dropbtn +{ + background-color: #070707; + color: #fff; + border:none; +} +.dropdown +{ + position: relative; + display:inline-block; +} +.dropdown-content +{ + display: none; + position:absolute; + background-color: #233067; + min-width: 160px; + box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2); + z-index:1; +} +.dropdown-content a { + color: black; + padding: 12px 16px; + text-decoration: none; + display: block; +} +.dropdown-content a:hover {background-color: #ddd;} + +/* Show the dropdown menu on hover */ +.dropdown:hover .dropdown-content {display: block;} + +/* Change the background color of the dropdown button when the dropdown content is shown */ +.dropdown:hover .dropbtn {background-color: #3e8e41;} diff --git a/index.html b/index.html index 7dfd4c9..671fd8e 100644 --- a/index.html +++ b/index.html @@ -33,11 +33,18 @@