.timeline{ display: flex; flex-direction: column; width: 70%; margin: 0 auto 2em; } .timeline-footer{ display: flex; justify-content: center; button.more{ position: relative; top: -2px; width: 100px; height: 40px; border: 2px solid black; padding: 0 10px; background: none; font-size: 14pt; &:hover{ background: gainsboro; } &:active{ top: 0; } } } @media screen and (max-device-width: 31.25em) { .timeline { width: 98%; } }