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 trialJ V
4,471 Points"name" class does not have a full, clickable box like the "main-nav li" items.
Above is my code. In the video, Guil states that, by changing the display value to "block", my .name and .main-nav would have a box that is almost entirely clickable.
My nav links follow this behavior, but not the .name class. Any idea why?
1 Answer
Steven Parker
231,269 PointsOn lines 63-67 in styles.css you have:
.name,
.main-nav a {
padding: 10px 15px;
display: block;
}
This targets the anchors (a) in the list, but the header (h1) for name.
Change line 63 to: ".name a,
".
You could also replace both lines 63 and 64 with: ".container a {
".
J V
4,471 PointsJ V
4,471 Points-_- geez..
Thanks so much Steven! It kills me that I didn't catch it the first time(s) around.