Edit This Code:
<!DOCTYPE html>
<html>
<head>
<style>ul {
    list-style-type: none;
}


ul li a {
    color: green;
    text-decoration: none;
    padding: 3px;
    display: block;
}


@media screen and (max-width: 699px) and (min-width: 520px) {
    ul li a {
        padding-left: 30px;
        background: url("email-icon.png") left center no-repeat;
    }

}
</style>
</head>
<body>

<h1>Resize the browser window to see the effect!</h1>

<ul>
  <li><a data-email="johndoe@example.com" href="mailto:johndoe@example.com">John Doe</a></li>
  <li><a data-email="marymoe@example.com" href="mailto:marymoe@example.com">Mary Moe</a></li>
  <li><a data-email="amandapanda@example.com" href="mailto:amandapanda@example.com">Amanda Panda</a></li>
</ul>

</body>
</html>


Result:
Try it Yourself - © w3schools.com
Privacy Policy