Adding a link from the child element to the parent element

Adding a link from the child element to the parent element, if we have a div and we want a link inside to make all div clickable we can do it with this snippet:

<div class="clickable">
   <a href="#">Link Text<a/a>
</div>
.clickable {
position: relative;
}
.clickable a:after {
content: "";
display: block !IMPORTANT;
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
z-index: 1;
}
Scroll to Top