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

CSS CSS Selectors Selectors - Beyond the Basics Styling Form Buttons and Links with Attribute Selectors

Cursor: pointer for buttons.

Why don't we use a hover selector (pseudo-selector?) for the button inputs. Since the style happens when we hover over the buttons?

1 Answer

Jamie Moore
Jamie Moore
3,997 Points

This is a really good question. Personally, I would add thecursor:pointer to the:hover selector, but I'd love to hear the reasons for not using that in this example! I suspect it might just be to make the example a little simpler, rather than having to use three attribute selectors with 3 hover selectors?