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!

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


Trouble getting the right selector :S CSS

Hi everyone,

bit of a strange one really, I've just been messing around with this pen today and I cant for the life of me get my css to select the ::after element on hover of the lift item to change its border color.

Any help is much appreciated!


1 Answer

Adam Moore
Adam Moore
15,825 Points

First off, cool demo.

it looks like you have .popout-menu-right li:hover .arrow-box:after change that to .popout-menu-right li:hover:after

seems to work for me. (if this is what you're going for)

Let me know if it works out.

Thanks Adam!! :)

Yes that has worked a treat and really finished it off, glad you like the demo I spotted the animate.css file in the pen settings and had a little mess around :)

Super easy to change the way the menu opens too with all the pre-defined css from the animate.css file :)

Thanks again for that Adam a big headache cure!