Using attribute selectors to style elements in css

[type= “checkbox”] {
margin: 10px 0px 15px 0px;

This is my code for the challenge of using the type attribute selector to change the margin size of an element. But I keep getting the error message that the top margin needs to be 10px and the bottom 15px. Is this not the correct code for this task?


1 Like

@andrewolivia1126 That looks correct. What is the exact error message you are getting?
Are you supposed to write input[type="checkbox"] instead of [type="checkbox"]?
Have you tried another browser?
By the way, if the number is zero you do not need to add px to it. Example:
margin: 10px 0 15px 0;

I just figured it out after a day and a half. I somehow removed a space in the code for the checkboxes below this. Sorry about that. I meant to edit the post.