header { width: 100%; height: 4.1em; margin: 0 auto; padding: 0; position: relative; @include gradient ($from-color, $to-color); .mobile-logo { width: 8em; position: absolute; left: .5em; top: .5em; } .mobile-back { font-size: .75em; position: absolute; top: .75em; right: .75em; a { color: #eee; text-decoration: none; } } } /* This is used to center the logo for full width */ .center { display: none; } /* Medium devices (desktops, 600px and up) */ @media (min-width: 600px) and (max-width: 991px) { .mobile-logo { display: block; } .logo-container { width: 100%; display: none; margin: 0 auto; padding: 0; i { float: right; } .center { width: 200px; float: none; position: absolute; left: 60%; top: 0; margin-left: -150px; margin-top: 8px; display: block } } .mobile-back { display: block; } } /* Large devices (large desktops, 1200px and up) */ @media (min-width: 992px) { .mobile-logo { display: none; } .logo-container { width: 100%; display: block; margin: 0 auto; padding: 0; i { float: right; } .center { width: 200px; float: none; position: absolute; left: 50%; top: 0; margin-left: -150px; margin-top: 8px; display: block } } .mobile-back { display: none; } }