body { padding: 20px; @media screen and (max-width: 400px) { padding: 3px; } } footer { border-top: 1px solid rgba(0, 0, 0, 0.2); padding-top: 10px; text-align: center; font-size: small; margin-top: 30px; }