Sometimes the links under the <div>
element of the header cart are not clickable in the cart menu of my website.
HTML:
<div class="shopping-cart-btn">
<a href="https://domain.tld/cart">View Cart</a>
<a href="https://domain.tld/checkout">Checkout</a>
</div>
CSS code of the <a>
tag:
.shopping-cart-btn a {
background-color: transparent;
border: 2px solid #eeeeee;
color: #454545;
display: block;
font-size: 14px;
font-weight: 500;
padding: 14px 20px 12px;
text-align: center;
text-transform: uppercase;
transition: all 0.3s ease 0s;
I tried setting z-index: 9999; position: relative;
into the above class but it is still not working.
Also tried using <span>
for the URLs but still, the links are not clickable.
To reproduce, go to retracted and then add any item to the cart, click on the bag icon on the top right side of the page and try clicking on both the links "VIEW CART" and "CHECKOUT". Sometimes it works but most of the time it doesn't work.
EDIT: Please see mplungjan's comment for a possible solution as this question got closed wrongfully with unrelated solution.