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

Oliver Sewell
Oliver Sewell
16,425 Points

because i placed the logo in the nav list , is their anyway to take the pseudo class :hover of the logo?

my logo is placed in the nav list to help me position when i use media queries , but i dont want it to have the pseudo hover is their anyway to take it off the "practice" logo also how do i get rid of the white space at the top of the webpage. thankyou :)

http://codepen.io/OliverSewell/pen/YXmXJp

1 Answer

Brandon Berger
Brandon Berger
3,947 Points

Use the :not() selector

.main-nav li:hover:not(.main-logo) , a:hover:not(.main-logo) {
  background: CornFlowerBlue;
  color: white;
  text-decoration: underline;
}