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

CSS

Custom Code: How Do I Raise My Nav Links?

Hi everyone!

I am testing my newly found HTML/CSS skills, although they are still new and not fully developed lol. I am getting stuck in raising the links Home, Resources and Blog up a couple of pixels. I have placed all of the code on Code Pen so you can see my very sloppy code :)

Code - http://cdpn.io/Jxbzk

How do I fix this?

5 Answers

Do you want the navigation links to raise up when you hover or just in general?

you need to apply the CSS display property with the value of inline to your h2 tag. Css-tricks.com has a great definition on the display property

P.S. your code looks very nice.

I tried the display: inline; code but I used it in the wrong place.

Elliott Frazier - Thank you for the compliment :)

David May - I would like to generally raise the navigation.

The code "display: inline;" not affecting the code at all. Is there any other options for raising the links? I have been messing around with the margins and padding but cannot make the changes I want.

opps, I seem to have misunderstood your problem, maybe this is what your looking for:

.Full_Nav {
  padding-bottom:5px;
}

P.S. it's best not to use uppercase letters when naming classes or ids.