.link{ color: #aaa; font-family: 'Nunito Sans', sans-serif; font-size: 22px; font-weight: 700; line-height: 20px; text-transform: capitalize; display: inline-block; position: relative; z-index: 1; transition: all .5s; } .link:hover, .link:focus{ color: #91640F; font-style: italic; } .link:before{ content: ''; background: #F1C40F; display: block; opacity: 0; position: absolute; top: 8px; left: 0; right: 0; bottom: 8px; z-index: -1; transition: all .3s; } .link:hover:before{ opacity: 1; left: -5px; right: -5px; top: -5px; bottom: -5px; } @media only screen and (max-width: 767px){ .link{ margin-bottom: 30px; } }