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 Techniques Display Modes Inline-Block Formatting

my logo and links still not clickable as they should

My logo and links are still not fully clickable on all their surfaces, only on some part. I see on the video that it should be more clickable. Can not see any mistake in my css. Any idea what is wrong ?

/* Page Styles
================================ */

body {
  font: normal 1.1em/1.5 sans-serif;
  color: #222;
  background-color: #edeff0;
}

.main-wrapper {
  width: 90%;
  margin: auto;
}



/* Layout Element Colors
================================ */

.main-header       { background-color: #384047; }
.main-logo         { background-color: #5fcf80; }
.main-nav li       { background-color: #3f8abf; }
.primary-content   { background-color: #caebf6; }
.secondary-content { background-color: #bfe3d0; }
.main-footer       { background-color: #b7c0c7; }

/* Header, Banner and Footer Layout
================================ */

.main-header {
  padding: 20px;
  display: table;
  width: 100%;
}

.main-logo,
.main-nav,
.main-nav li {
  display: inline-block;
}

.main-logo,
.main-nav li {
  padding: 10px 20px;
  border-radius: 5px;
}

.main-nav li {
  margin-top: 15px;
  margin-right: 10px;
}

.main-logo {
  margin-top: 0;
  margin-bottom: 0;
  margin-right: 50px;
  width: 120px;
}

.main-logo a,
.main-nav a {
    color: white;
    text-decoration: none;
  display: block;
  text-align: center;
  padding: 10px 20px;
}

3 Answers

I can't test your code right now, but I think you should delete the padding in the list items:

.main-logo,
.main-nav li {
padding: 10px 20px;
border-radius: 5px;
}

it helped! Thank you very much!

I'm glad I could help!

John Marshall
John Marshall
3,475 Points

Hey, I had the same problem. Your suggestion solved it. Any reason as to why deleting the padding there solved the problem. Thanks!