02Geek HTML5 and JavaScript, TypeScript, React, Flash, ActionScript online School
Previous VideoNext Video

What are media Queries?

Media Queries was introduced in HTML4/CSS2 as a way to support the growing ways we consume data online. Media queries enable us to serve up the same data but change the way it is presented based on parameters in our control. In this course we will learn how to control these parameters to create sites that look fantastic no matter how they are consumed.

Keynotes:

  • What are Media Queries?
  • Media Types
  • How to design sites in a Media rich world?
  • Start from scratch or tweak for medias?
  • The case of Mobile first.

properties:

medias, CSS3, HTML5, media queries.

Video Transcript

00:00Welcome to our first section in our course about responsive web designs and
00:07really in the heart of this course on fluid design is a course about media
00:13queries and our first chapter is a hundred percent focused on really
00:16getting familiar with the core syntax of media queries so let's get through
00:21the things that we're going to be talking about in this course and in
00:25really in this chapter this chapter is all about media queries but what are they
00:31so media queries in a sense are a capability for us in their native and
00:36really core capability is to define what type of media is our site is our output
00:42going to be displayed on is it going to be on a screen is it going to be printed
00:46out and that is it going to be on a mobile device is it going to be on on a
00:53device that is for people disabilities such as a braille device or a device for
00:58people with vision and parodies so there's there's a lot of different types
01:02of devices and just one another one coming up into my head is televisions
01:05projectors and so on and so forth in the future they'll probably be even more so
01:10how do you create customizations is really the question of this chapter
01:14although we're not yet creating immersive designs that are going to
01:19change based on on whatever device we're in we're going to be in the
01:23stage of working with different media types now the first media type that we're
01:27going to be introduced to is going to be the print media type so while we have a
01:31first version which is our display what happens if you want to do tweaks to
01:35your print for example we're going to save this and let's preview this as a
01:39printed device you'll see that we have here this media type that is being
01:43printed out and notice how we have here an advert as well I'm going to go
01:47ahead into my source files just really quickly changing something
01:50really small I'm going to go ahead here and just delete this extra information
01:55that we have here go back into that application I'm going to go ahead and
01:59click on refresh and again in our media types I'm going to go ahead and click
02:02on print and notice how this time around when I go to get my item printed
02:06will have your a specific design that was created for the print version and
02:10that does not have this advert inside no at add insight and that's really
02:15part of that process of defining what goes in what specific media type and
02:20how does it look like by the way in our printed version we also changed the
02:23font to fit the printed media and this is what we're going to look at in this
02:28chapter now how to design sites in a media rich world is a really really
02:33great question now you already have a design there's a high probability of that
02:38if you have a site you've designed previously so the next step for that
02:41is to just try to tweak it and modify it based on different configurations if
02:45it's based on the screen resolution of the user if it's based on the type
02:50of device such as a mobile device which has less areas to click on or if it's
02:55for print so you could do small changes and small tweaks to your design but
02:59really the big question beyond that is what is the better way to design and
03:03that's going to be part of the process and part of our conversation should you
03:07start from scratch or should you tweak and really the answer is it really just
03:10depends on your scenario but in general what the really great question is when
03:17you start designing where to start from if you're planning to create a rich
03:21design and the case that I make is the case for mobile design and the idea
03:26behind it is very simple build first for the device with the least
03:30amount of space that way you're not loading up extra things that you don't
03:34need create a perfect design for the mobile device and then slowly expand
03:38outward in size creating a design that works better and better for larger
03:43displays that could output more things the logic behind it is very simple is
03:46that you're only want to load extra information in more things depending on
03:50the growth of the site starting from the most basic design and then working your
03:55way up in this lesson we're not going to talk in necessarily exactly about
03:59responsive design but we're going to do this full loop through of understanding
04:03what media types are and see them in action and in the next chapter we're
04:08going to step into that world of responsiveness so see you in this
04:11chapter let's jump right into it and let's start getting to know media
04:15types

Ready to Level Up Your Skills?

Join thousands of learners on 02GEEK and start your journey to becoming a coding expert today!

Enroll Now for Free!