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
Pro Student 3,155 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 Pierce-Lackey
Gabriel Pierce-Lackey
11,008 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?