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

olympia iliadou
olympia iliadou
812 Points

What if I want to make a border that hovers on the "skills" section for Example?

What if I want to make a border that hovers on the "skills" section for Example? I don't know how would I create this pseudo-class?

Steven Parker
Steven Parker
231,269 Points

Is this in regards to a specific course and lesson? If so, please provide a link to that lesson (and perhaps also a time index).

1 Answer

It's hard to answer without some context or code to look at. :hover is the pseudoclass you would use for a hover effect. So it would look like this:

.example-class:hover {
     border: 1px solid #ffffff;
}

So, that would give you a border on hover if you hover over that element.

Rich Donnellan
Rich Donnellan
Treehouse Moderator 27,696 Points

Changed this to be an answer and updated to mark the code block as css syntax.