3-CSS Navbar
Video
Navbar Starting Code
Let's add some of the code for the Navbar:
Here's how the app should look at this time: Would you look at that! It is actually starting to look like something made in this millennium!
contentWrapper Class
Let's make it so that the content isn't right up against the edge of our screen by using the Content Wrapper CSS. Go to your index.html file and add a <div> in the header that corresponds to the contentWrapper code. Notice that we add plus symbols for the items that you'll need to add:
Let's add that same wrapper in the sidebar section:
Notice how the margins have changed and the code has some spacing from the edge:
More Navbar code
Let's keep moving through the rest of the navbar CSS for our Nav Bar. Let's work on this Utility Menu. We need to move it over to the top right corner and put some shading in:
First, let's add the utilityMenu id to our HTML to target the menu:
Let's also add a class to a few of the <li> elements. We will use these classes to write CSS that will allow us to hover over an item:
More CSS
Then, let's start working on the rest of our CSS Nav code. Some of this gets explained in the video, some is intuitive, and some will require you doing some tinkering. This code will got below the CSS Navbar code that we did above:
As before, go ahead and go in and tinker with some of the values in this code. Learning will come as you experiment with the code. At this point the app should be looking like this:
Last updated