#navigation-top { width: 100%; padding: 4px; position: fixed; z-index: 99999; border-bottom: 2px solid black; } #site-title { padding: 35px; } @media only screen and (min-device-width: 320px) and (max-device-width : 480px) { #navigation-top { position: absolute; } }