Easy-to-follow video tutorials help you learn software, creative, and business skills.Become a member
Now we're going to style the navigation element. Let's come back to our text editor. Let's come back to screen_layout_large. Let's scroll up to the top, where we have our global rules. After our a.logo, let's hit a few returns. Let's type nav. We're going to target the nav element. First, we're going to set a width of 100%. Next, we're going to set a display of block. Next, we're going to set a position of absolute, so we can position this inside of that main page container as well.
And lastly, let's come down and set background color to #a6430a;. Let's choose Save. Let's come back out to our browser. Let's hit Reload. So now we'll see that our navigation element now takes 100% of the available space inside of its container. So if I open this up, the page container here is conforming to 980 and the width of the navigation is taking that full area. And now we can better see the hover states as well.
So at this point, we're seeing some overlap because the navigation element has absolute- position properties, but we haven't actually positioned it at a specific spot. So we're going to work on that next.
Get unlimited access to all courses for just $25/month.Become a member
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.