Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

CSS

Robert Pryor
seal-mask
.a{fill-rule:evenodd;}techdegree
Robert Pryor
Data Analysis Techdegree Student 3,431 Points

Force iPad Horizontal View to Mobile Navigation

Can anyone help me figure out the code I need to make my mobile navigation show when people view on iPad in landscape view?

Here is what I am trying now.

  <style>

    @media screen and (max-width: 1024px) {
    .w-nav[data-collapse="medium"] .w-nav-menu {
        display: none;
    }

    .w-nav[data-collapse="medium"] .w-nav-button {
        display: block;
    }

    #desktop-nav-top {display: none;}
    #desktop-nav {display: none;}
    #mobile-nav {display: block}

  }
</style>

I have this in the Head Code. I am using Webflow to make and host this site - https://midway-isd.webflow.io/

Thanks!

1 Answer

Jamie Reardon
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
Jamie Reardon
Treehouse Project Reviewer

Hi Robert Pryor have you looked into using the orientation media feature? It will help you build media queries for tablet devices, see this link. Otherwise, you'll want to make sure that your targeting the correct resolution width that the tablet is during portrait mode.