Easy-to-follow video tutorials help you learn software, creative, and business skills.Become a member
Now, we're going to link in two additional CSS files, but we're going to put this inside of CSS3 media queries. So after our screen_large_ layout.css, let's hit a return. Let's add another link tag. We'll type rel="stylesheet," type="text/css". The next attribute is going to be media="". Inside of the quotes for media, we're going to type "only screen and" Then we're going to put a beginning and ending parenthesis. Inside of the parentheses, we're going to type min-width:50px, for 50 pixels.
Outside of the parentheses, we're going to type "and," another of set of parentheses, and inside of the second set of parentheses, we're going to type, max-width:500px. After the media attribute, let's hit a space. We'll type href and in here we're going to type "css/screen_layout_small.css". Outside of the attribute, forward slash, and then end the tag.
So basically, what's happening here is if the screen size is between 50 pixels, all the way up to a maximum of 500 pixels, the browser is going to use the CSS rules located in the screen_small_layout.css. Now, let's copy this entire link. Let's hit a return. Let's paste it on the next line. Let's come in here and let's select the 50 pixels here and change that to 501, so that it's one pixel larger than the largest screen for the small size.
And then for our maximum width, let's change 500 to 800. Now, if the browser's width is between 501 and 800, we're going to change the screen_layout_small to screen_layout_medium. And now that we have our small and medium screens hooked in through media queries, next we'll look at enabling Internet Explorer 7 and 8 to understand HTML5.
Get unlimited access to all courses for just $25/month.Become a member
120 Video lessons · 58296 Viewers
119 Video lessons · 67576 Viewers
84 Video lessons · 16863 Viewers
125 Video lessons · 29759 Viewers
Access exercise files from a button right under the course name.
Search within course videos and transcripts, and jump right to the results.
Remove icons showing you already watched videos if you want to start over.
Make the video wide, narrow, full-screen, or pop the player out of the page into its own window.
Click on text in the transcript to jump to that spot in the video. As the video plays, the relevant spot in the transcript will be highlighted.