header { position: fixed !important; width: 100%; z-index: 99999; } @media only screen and (min-width:640px) { main { padding-top: 82px; } }