I am having trouble with an anchor element that is contained within a div. No matter what I try, I cannot resize or move it up or down without it covering its sibling element. I have attempted using transform-translate and margin properties, but to no avail.
https://i.sstatic.net/FejF6.png
Snippet of HTML code:
<div class="medio-item">
<img src="../assets/mail.svg" class="icon" alt="Email">
<div class="medio-item-text">
<h3>Contact Us:</h3>
<a href="mailto:<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="721a1d1e13141701061b04131e32061d070001141701061b04131e5c111d1f">[email protected]</a>"><a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="4f2720232e292a3c3b26392e230f3b203a3d3c292a3c3b26392e23612c2022">[email protected]</a> </a>
</div>
</div>
Snippet of CSS code:
.contact-medium {
margin: 5rem 0;
.contact-medium-online {
display: inline-block;
width: 46rem;
height: 42rem;
background-color: #f87408cc;
@include WidthAuto;
.medium-item {
display: flex;
}
}
}
.medium-item-text {
color: white;
h3 {
font-size: 1.6rem;
font-weight: 700;
}
a {
color: black;
background-color: white;
border-radius: 5px;
padding: 1rem;
margin: 0;
}
}
The CSS utilized here is SCSS format.