That's not particularly responsive, so let's change that to 70 percent instead. Let's say you have a very simple website, like this:Īs you can see from the GIF below, our image will by default have a fixed width: In this article, we'll start with the percentage unit %, and then we'll look at the rem unit in the final section. You'll learn about mobile first design, CSS media query breakpoints, and discover exactly what responsive web design is. In today's tutorial, you'll get a complete, step-by-step, hands-on look at responsive web design. And it's all handled by something called CSS media queries. This is handy because it allows, for example, the width of an image to be based on the width of the browser. Responsive design - Designing for the responsive web is hugely important. These are units that get their value from some other external value.
#RESPONSIVE DESIGN TUTORIAL CSS PROFESSIONAL#
If you want to dive deeper into the subject afterward, you can check out our responsive web developer bootcamp on Scrimba, which will enable you to build responsive websites on a professional level.īut for now, let's start with the basics! Relative CSS unitsĪt the core of responsive web design are relative CSS units. These useful snippets are perfect for designers to seize and use as a launchpad for other web projects. Line-height is important for any designer or front end developer to understand as it can impact almost every aspect of our layouts. This obviously isn't enough to learn it properly, but it will give you an overview of the most important concepts, which I personally define as these: Responsive design is an emerging technique with cool new trends every year. At first glance, CSS line-height seems very simple, but there is a lot going on below the surface.
In this article, I'll teach you as many responsive design techniques as I possibly can in five minutes.