A dropdown is in place to display certain content.
<ul class="menus" style="">
<li>hey</li>
</ul>
Here is the corresponding CSS:
.menus {
width: 607px;
background-color: white;
border-bottom: solid 1px #9f9f9f;
border-left: solid 1px #9f9f9f;
border-right: solid 1px #9f9f9f;
bottom: 20px;
margin: 0;
position:relative;
}
.menus li {
list-style: none;
display: block;
padding: 15px;
border-bottom: solid 1px #d6d6d6;
}
.menus li:hover {
background-color: #71bfdb;
color: white;
border-bottom: solid 1px #3fb7d3;
border-top: solid 1px #3fb7d3;
text-decoration: none;
}
.menus li a:hover {
text-decoration: none;
}
Whenever the dropdown opens, all content shifts downwards based on the length of the list.
Inquiry
How can this downward shift be prevented? If I use absolute positioning, the entire dropdown behaves erratically and does not align correctly with my intentions.