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 CSS Selectors Selectors - Beyond the Basics Styling Form Buttons and Links with Attribute Selectors

Deborah Savage
Deborah Savage
Front End Web Development Techdegree Student 6,794 Points

The pointer is not changing for me. Can anyone see why? I am not seeing it. Thanks in advance.

The pointer is not changing for me: my code: input[type="button"], input[type="reset"], input[type="submit"] { cursor: pointer; }

Tarran Prior
Tarran Prior
Courses Plus Student 3,169 Points

Hello Deborah.

The CSS looks fine to me, I see why you're confused! Have you double checked that the "type" values are corresponding to the HTML attributes?

Michael Darcy
Michael Darcy
12,025 Points

Hi, Deborah,

Check the rest of your code for syntax errors. CSS will not make you aware of mistakes and will only work until an error occurs.

For example, I accidentally wrapped placeholder in quotation marks.

input["placeholder"] {
  background: #fdfee6;

This is incorrect syntax. Only the code I wrote before that worked until I removed the unnecessary quotes.

2 Answers

Gabriel Plackey
Gabriel Plackey
11,064 Points

The code looks good and works fine. Perhaps it's an issue with where the code is in your CSS. Could it be in the media query at the bottom of the CSS?