Learn HTML Forms by building a Registration Form Step 62

Step 62

Most browsers inject their own default CSS properties and values for different elements. If you look closely, you might be able to notice the file input is smaller than the other text input elements. By default, a padding of 1px 2px is given to input elements you can type in.

Using another attribute selector, style the input with a type of file to be the same padding as the other input elements.

Hi there!

Did you have any questions about the challenge step?

Add a link to the challenge step and also post your code here.

my answer, which did not pass:

input [type="file"] {
  padding: 1px 2px;
}

if you put a space in a selector it means descendant. For characteristics of the same element you should not have any space

1 Like