Easy-to-follow video tutorials help you learn software, creative, and business skills.Become a member
The next thing we're going to do is start styling the navigation. So here in the web browser, I can see the navigation is showing up down here under the promo areas. So what we want to do is create some styles that are going to be global and then some styles that are going to be specific to individual layouts. So let's come back to our text editor. Let's come back to screen_style.css and after our promo containers, let's add a few lines, and let's add a rule that's going to target the anchor links inside of the nav element. So we'll type "nav a" beginning and ending bracket.
Let's split those open. First we're going to set color. We're going to set that to #F5A06E;. The next property is going to be text-transform. We're going to set that to uppercase, semicolon. Next we're going to set text-decoration to none. That way the links won't be underlined. Let's hit a return. We're going to set a display type of inline block. This way the anchor links will have more dimensions, similar to that of an image tag. So they'll have height and width proportions based on how much room they need, but they won't have the straight inline style like we get with typical anchor tags and span tags.
Next property, we're going to set a font-weight to bold, hit a return. We're going to set font-size to .9 ems. Next we're going to set our hover state for the nav elements. So nav a:hover, beginning and ending bracket. All we're going to do is come in here and set the color to white, by putting pound sign and three Fs. Let's hit Save.
Let's come back to our browser. Let's hit reload. We'll now see the color change. We'll see that the links are in all uppercase and when I roll over these, they turn white. So these CSS rules target the text aspects of the links. Next we're going to work on the layout aspects of the navigation links.
Get unlimited access to all courses for just $25/month.Become a member
117 Video lessons · 42519 Viewers
119 Video lessons · 53927 Viewers
65 Video lessons · 14244 Viewers
113 Video lessons · 82791 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.
Your file was successfully uploaded.