Utilize icons and for contact number, include tel:<-- phone number -->
within the anchor tag. Similarly, for email address, use mailto:<-- mail id -->
inside the anchor tag.
Alternatively, you can refer to the example provided below:
index.html
<div class="header-contact">
<div id="phone-details" class="widget-text">
<i class="fa-brands fa-phone"></i>
<div class="info-text">
<a href="tel:+1 123-456-7890">
<span>Call</span> +1 123-456-7890
</a>
</div>
</div>
</div>
And here is style.css
.header-contact .widget-text {
position: relative;
padding-left: 55px;
}
.header-contact .widget-text i {
position: absolute;
border-radius: 2px;
text-align: center;
left: 0;
line-height: 40px;
color: #003e78;
font-size: 35px;
-webkit-transition: all .3s ease;
transition: all .3s ease;
font-weight: 700;
}
.header-contact .widget-text .info-text a {
color: #505050;
font-weight: 400;
font-size: 16px;
}
a {
color: #D6F8D6;
transition: all 0.3s ease 0s;
text-decoration: none !important;
outline: none !important;
}
.header-contact .widget-text .info-text span {
display: block;
font-weight: 700;
color: #101010;
line-height: 18px;
}
Additionally, you can incorporate fontawesome icons