Skip to content
This repository has been archived by the owner on Feb 16, 2021. It is now read-only.

why the position absolute are not working. help #689

Open
aazhar123 opened this issue Nov 16, 2017 · 1 comment
Open

why the position absolute are not working. help #689

aazhar123 opened this issue Nov 16, 2017 · 1 comment

Comments

@aazhar123
Copy link

<style>

li a, .dropbtn {
display:inline-block;
text-decoration:none;
color:white;
padding:14px 16px;
font-size:20px;
float:left;
}
li.dropdown {
display: inline-block;}

.dropdown-content{
display:none;
position:absolute;
background-color:white;
box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
z-index: 1;
min-width:160px;}

.dropdown-content a{
text-decoration:none;
color:black;
display:block;
padding:12px 16px;
text-align: left;
}

ul {
list-style-type:none;
overflow:hidden;
margin: 0;
padding: 0;
background-color:#333;
}

li a:hover ,.dropdown:hover .dropbtn{
background-color:red;}

.dropdown:hover .dropdown-content{
display:block;}

.dropdown-content a:hover {
background-color: #f1f1f1;}

</style>
@aazhar123
Copy link
Author

the dropdown-content should be under the dropdown button

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant