Welcome to another Envato Tuts+ screencast tutorial! In this video I’m going to give you a quick introduction to using CSS vertical breakpoints.
Breakpoints are synonymous with responsive web design; they’re the points at which you choose to alter the layout of a design. For example, 768px is a commonly used viewport width, below which you might want to arrange your layout for mobile devices, and above which you might think more in terms of desktop.
However, breakpoints don’t only apply horizontally, to a viewport’s width; they might come into effect for a number of different reasons. In this tutorial we’re going to look at vertical breakpoints, which are applied in relation to a viewport’s height. We use them with the min-height
and max-height
properties within CSS media queries. Let’s take a deeper look.
In this video we look at the following scenarios:
- Changing the spacing and font sizes on short viewports.
- Adjusting mobile navigation sizes on short viewports.
- Making a header or footer fixed, only when there is enough room.
- Adjusting full-screen sections for short viewports.
Be sure to download the source files to follow along.
Further Reading
- Responsive Web DesignQuick Tip: Spare a Thought for Vertical Break PointsIan Yates
- Responsive Web DesignElement Queries: the Future of Responsive Web DesignLouie Rootfield
- Responsive Web DesignNew Course: Responsive Web Design RevisitedAndrew Blackman
- SassSimplify Your Media Queries with Sass “Breakpoint”Joren Van Hee
Subscribe below and we’ll send you a weekly email summary of all new Web Design tutorials. Never miss out on learning about the next big thing.
Update me weeklyEnvato Tuts+ tutorials are translated into other languages by our community members—you can be involved too!
Translate this post