Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

CSS

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!

Craig

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!

Craig