@media screen and (min-device-width: 481px) { .nav_container { position: absolute; font-size: 12px; } } @media screen and (min-device-width: 1024px) { .nav_container { position: fixed; font-size: 14px; } }