Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

HTML Introduction to HTML and CSS (2016) Adding a New Web Page Linking It All Up

How do you code the black menu bar into your resume?

In the home of your website, there is a black bar at the top of the screen that:

#1. Contains blue links on the right that turn white when you hover over them.

#2. Has your name in the left.

#3.Stays at the top of your screen even when you scroll down.

#4. Has no white spacing in the top, left, or right.

I am trying to code it into my resume page, but I can only figure out step 1. Does anyone know the code for the other steps?

2 Answers

Steven Parker
Steven Parker
229,657 Points

Here's a few hints:

  • perhaps you could get the name on the left similarly to how you got the links over to the right
  • the position property can be used to make something stay at one place on the screen
  • spacing is generally due to settings of the margin and padding properties

You can duplicate the index.html page and remove tags inside the <body> tag. Then start building the resume between the <body> and </body>. You may have to adjust some of the <a> tags in the navigation bar, but using the index.html page as a template is pretty common. :) Since the link to the style.css file is still there, you don't need to create a new css file for the elements of the page, such as the nav bar. Hope this helps! :)