In order to maker distance between title and list items, I set an <a>
with margin: 8px 0;
. The weird thing is that the clickable area of the anchor expands just like I set paddings on the element however I did not. What is the situation?
ul.footer-nav {
margin: 0 12px;
}
ul.footer-nav > a {
display: block;
font-size: 15px;
font-weight: 600;
color: #000;
margin: 8px 0;
}
<ul class="footer-nav">
<a href="#help-and-information">HELP & INFORMATION</a>
<li><a href="#help">Help</a></li>
<li><a href="#track-order">Track Order</a></li>
<li><a href="#delivery-and-returns">Delivery& Returns</a></li>
</ul>
EDITED----------
If I set both margin and padding on the element, the clickable area and the distance work correctly.