Step 42: Learn HTML Forms by Building a Registration Form

The instruction was:
It would be nicer to have the label text appear above the form elements.

Select all input , textarea , and select elements, and make them take up the full width of their parent elements.

Also, add 10px of margin to the top of the selected elements. Set the other margins to 0 .

But when I code with use

input, textarea, select {

  margin: 10px 0 0;


It tells me later to “add width 100%” error as well.
I think the instruction should tell what they want us to do from the get go.

I was also stuck on this same step. I was able to fix it like this:

select {
	margin: 10px 0 0 0;
	width: 100%;

I hope it works for you

1 Like

I did that too. I just want to notify the forum that the task in this step is not clear.

So it is, in this and in other steps…

doesn’t work here tho

1 Like

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.