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!
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
Kelvin AtawuraFront End Web Development Techdegree Student 19,022 Points
targeting nexus 7 in both portrait and landscape modes
any idea how l can acurately traget nexus 7 in both portrait and landscape modes. currently l have the ipad media queries affecting but ideally want distinct media queries for both views. Guil Hernandez
Chris Shaw26,663 Points
These days it's not best practise to have device specific CSS unless it's to fix an issue with that device, nowadays it's better to have 3 main breakpoints which consist of the following.
- small (typically from 0px up to 640px)
- medium (typically from 641px up to 1024px)
- large (typically from 1025px up to 1440px)
The advantage to using media queries such as these is we allow the site to expand and contract naturally without forcing it to go a certain way which can lead to a broken design on smaller devices, it's not exactly the answer you were looking for but hopefully this will help you get things working better between your iPad and Nexus.