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 CSS Layout Basics Controlling Layout with CSS Display Modes Using Inline-Block to Set Width, Height, Top and Bottom Margin and Padding

"name" class does not have a full, clickable box like the "main-nav li" items.

https://w.trhou.se/9je2c44k7d

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
Steven Parker
231,269 Points

On 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.

:point_right: Change line 63 to: ".name a,".

You could also replace both lines 63 and 64 with: ".container a {".

-_- geez..

Thanks so much Steven! It kills me that I didn't catch it the first time(s) around.