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

Meshach Ojeda
Meshach Ojeda
8,276 Points

li elements in the nav bar change color?

how come the links in the list items change color when the cursor hovers over them? I dont see a hover pseudo selector, just curious

Steven Parker
Steven Parker
231,269 Points

Where's the code that you're seeing this effect from?

3 Answers

Steven Parker
Steven Parker
231,269 Points

He scrolls by it pretty fast, but if you freeze the video at the right point around 2:57 you can see see this starting on line 57 of "styles.css":

.main-nav a:hover {
    color: #093a58;
}

If you have the workspace open you can more easily just see it in the file.

Meshach Ojeda
Meshach Ojeda
8,276 Points

sorry .. i did not realize the question was not attached to the video i am viewing. it is from the css lay out course on inline display heres the link: https://teamtreehouse.com/library/positioning-elements-sidebyside-with-inline-display

Meshach Ojeda
Meshach Ojeda
8,276 Points

ahhh.. :| i cant believe i missed that . thank you sir