Advanced CSS Media Queries
1h 5mAdvanced2020-08-17
Authors

Jen Kramer
Teaches web design and development
Course details
While most web developers have encountered media queries as part of their work on responsive layouts, media queries offer many more options than just the size of the viewport. In this course, instructor Jen Kramer explores some of the latest and greatest media query options available to Chrome, Firefox, Edge, and Safari. Learn how to test for different styles of interaction, determine how devices are held, figure out what resolution they have, and combine these options to build better sites and apps. Jen also covers complex media queries using and, not, and comma-separated conditions. Plus, she shows you how to keep these choices from breaking your projects in older devices.
Skills covered
CSSWeb StandardsWeb DesignAdvancedFront-End Web DevelopmentWeb DevelopmentOpen Source
Concepts
0. Introduction
- 01 - Media queries aren't just screen size queries
- 02 - Working with CodePen
1. Understanding Media Features
- 03 - Understanding media in media queries
- 04 - Changing media in media queries
- 05 - Including width in media queries
- 06 - Including height in media queries
- 07 - Including aspect ratio in media queries
- 08 - Testing for monochrome devices
- 09 - Testing for screen orientation
- 10 - Testing for screen resolution
- 11 - Testing for hover and pointer
2. Complex Media Queries
- 12 - Testing for conditions with and
- 13 - Testing for conditions with not
- 14 - Testing for comma-separated conditions (or)
- 15 - Targeting specific devices using complex media queries
- 16 - Working with only
- 17 - Challenge
- 18 - Solution
Conclusion
- 19 - Next steps