@media only screen and (max-width: 3000px) { #logo { width: 100% /* Use the padding shorthand */ padding-top: 500px !important; ; padding-bottom: 400px ; margin: 0; } }