All Posts by Email, Once a Week

Media Temple logo

CSS-Tricks is brought to you in part by Media Temple, the web hosting that we both use and recommend.

Target mobile landscape only

  • # February 26, 2013 at 9:36 am

    My website as it stands looks fine on mobile devices in portrait but in landscape the header takes up a significant amount of the screen and is position:fixed so will always display. Is there any way of targeting just mobile landscape using media queries to change the position of the header to relative?

    http://joshuajohnson.co.uk

    # February 26, 2013 at 10:06 am

    Just another media query.

    http://css-tricks.com/snippets/css/media-queries-for-standard-devices/

    # February 26, 2013 at 8:27 pm

    This reply has been reported for inappropriate content.

    @media (orientation: landscape) {}

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.

There's a whole bunch of content on CSS-Tricks.

Search for Stuff   •   Browse the Archives

Get the Newsletter ... or get the RSS feed