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
Dillon Carter
6,364 PointsCustom 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
David May
10,572 PointsDo you want the navigation links to raise up when you hover or just in general?
Elliott Frazier
Courses Plus Student 9,647 Pointsyou 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.
Dillon Carter
6,364 PointsI 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.
Dillon Carter
6,364 PointsThe 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.
Elliott Frazier
Courses Plus Student 9,647 Pointsopps, 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.