.border-top { border-top: 1px solid #aaa; } @media (min-width: 940px) { .border-top { border-top: 0; } }