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
119 Video lessons · 47288 Viewers
117 Video lessons · 34236 Viewers
113 Video lessons · 80250 Viewers
116 Video lessons · 70175 Viewers