How can I use the type attribute selector to give the checkboxes in CatPhotoApp a top margin of 10px and a bottom margin of 15px?

Please i’v tried solving this problem please i need help. How can I use the type attribute selector to give the checkboxes in my CatPhotoApp a top margin of 10px and a bottom margin of 15px?

Which problem is it?

Hello @jerryjay, welcome to the forum.

In order to better help you we need a little more context on that:
what does your code looks like?
what have you tried so far to reach your goal?

Happy coding! :sparkle:

Hi @jerryjay

I struggled a bit on this one too. If you are on “Use Attribute Selectors to Style Elements”, you need to make sure you are adding the code within the Style tag and not on each checkbox. I added the it under the “silver background” code and just before the closing of the style tag.

.silver-background {
background-color: silver;
}

[type=‘checkbox’]
{margin: 10px 0px 15px 0px;
}

2 Likes