Easy-to-follow video tutorials help you learn software, creative, and business skills.Become a member
Now to position the nav bar for medium screens, let's come back to our text editor. Inside of the screen_layout_ medium after header a.logo, let's hit a few returns. Let's target the nav element, add our brackets. We're going to set a top property here of 200 pixels. Again, this matches the height of the header that we see up here, set to 200. Let's hit a return, nav a. Let's target the anchor links inside of the navigation element.
Put in our brackets. And we're going to set a margin-right of 20 pixels. So what we want to do here is space out the navigation a little bit more. Since somebody maybe on a tablet device, we want to make sure they have enough room between the links to tap them with their fingers. So let's hit Save. Let's come back to our browser, and let's hit Reload. Now we'll see the navigation now aligned at the top to 200 pixels and the navigational links are spaced out just a little bit more. So if I resize the browser, that's the large size and then the medium size.
Now that we have the navigation styled for the medium screens, next we're going to work on the promos.
Get unlimited access to all courses for just $25/month.Become a member
119 Video lessons · 47281 Viewers
117 Video lessons · 34225 Viewers
113 Video lessons · 80248 Viewers
116 Video lessons · 70175 Viewers