I am trying to create an unordered list where the list items are links and when you hover over each link, the background of that list item changes color. I also changed the list-style-type to none which removed the dot next to each item, however, the space where the dot used to be remains. How do I remove this space?
.landing-dropdown {
position: absolute;
display: flex;
flex-direction: column;
top: 30px;
left: 50vw;
background-color: gray;
list-style-type: none;
}
.landing-dropdown-item:hover {
background-color: lightgrey;
}
<ul class="landing-dropdown">
<li class="landing-dropdown-item"><a>DropDown</a></li>
<li class="landing-dropdown-item"><a>DropDown</a></li>
</ul>