.link{ color: #5d3f31; font-family: 'Raleway', sans-serif; font-size: 25px; font-weight: 300; line-height: 20px; text-transform: capitalize; display: inline-block; position: relative; z-index: 1; transition: all 0.5s ease 0s; } .link:hover, .link:focus{ color: #e06228; font-style: italic; } .link:before{ content: ""; background: #e7e7e7; width: 100%; height: 10px; position: absolute; left: 0px; bottom: 0; transition: all 0.3s ease 0s; z-index: -1; } .link:hover:before{ background-color: #e06228; height: 0; } @media only screen and (max-width: 767px){ .link{ margin-bottom: 30px; } }