Can't not get accepted on a CSS challenge

I’m doing this challenge: https://learn.freecodecamp.org/responsive-web-design/basic-css/use-attribute-selectors-to-style-elements and added this code to style:

input[type = 'checkbox']{
	margin-top: 10px;
 	margin-bottom: 15px;
}

I got accepted the last two requirement. However, it keeps telling me 'the type attribute selector should be used to select checkboxes on the first one and doesn’t accept my code. Thank you in advance.

Don’t put spaces around the = sign.

In general you’ll only use spaces for selectors like ul li or .blog-post h1

1 Like

Notice that the example is used in the css verbatim (exactly as written).I copy pasted the example then edited it and it passed.

[type='checkbox'] {
  margin: 10px 0px 15px 0px;
}
1 Like

Thank you guys, I got accepted. There shouldn’t no space between the ‘=’.