HTML
<ul class="top-header"> <li class="address"> <a href=""><i class="fas fa-map-marker"></i> <span></span> </a> </li> <li class="tel"> <span> <a href="tel:"><i class="fas fa-phone"></i> </a> </span> </li> <li class="mail"> <a href="mailto:"><i class="fas fa-envelope"></i> <span></span> </a> </li> <li> <a target="_blank" href=""> <i class="fab fa-facebook-f"></i> <span>Facebook</span> </a> </li> </ul>
CSS
/* Mobile First */ .top-header li a:hover, .top-header li a i:hover{ color: #EA6F22 } .top-header{ display: flex; background: #151211; color: white; } .top-header { margin-bottom: 0; padding: 10px; font-size: 1.6rem; color: rgba(255,255,255,.8); justify-content: space-around; } .top-header span{ display: none; } .top-header .fab, .top-header .fas { margin: 0 10px; font-size: 3rem; } /* Small devices (tablets, 768px and up) */ @media (min-width: 768px) { .top-header .fas, .top-header .fab{ font-size: 1.5rem; }