Https://www.freecodecamp.org/learn/2022/responsive-web-design/learn-accessibility-by-building-a-quiz/step-56

pls, I need help here with the step.

Your code so far

WARNING

The challenge seed code and/or your solution exceeded the maximum length we can port over from the challenge

You will need to take an additional step here so the code you wrote presents in an easy to read format.

Please copy/paste all the editor code showing in the challenge from where you just linked.

Replace these two sentences with your copied code.
Please leave the ``` line above and the ``` line below,
because they allow your code to properly format in the post.

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.67 Safari/537.36

Challenge: Step 56

Link to the challenge:

HI @Ambulosine !

Welcome to the forum!

Please write your code in the forum here so we can help you

When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.

You can also use the “preformatted text” tool in the editor (</>) to add backticks around text.

See this post to find the backtick on your keyboard.
Note: Backticks (`) are not single quotes (’).

My code:

.info input {
  display: inline-block;
  text-align: right;
}
.info label {
  display: inline-block;
  text-align: right;
}
.info input {
  width: 50%;
  text-align: left;
}
.info label {
  width: 10%;
  min-width: 55px;
}

type or paste code here

I would reset the lesson.

The challenge wants to you add another selector for all input and label elements within .info elements.

If you need help creating that selector, then look at the hint they give you

Hint

You should use either a .info > label, .info > input or .info label, .info input selector.

Inside that selector add the text-align and display properties.

Hope that helps!

1 Like

sorted now. Gracias!

This is one of the more annoying challenges, and the hints don’t clarify you need to have BOTH selectors in one block basically.

I spent ages trying to have my code pass.

This is what actually passed:

.info > label, .info > input {
  display: inline-block;
  text-align: right;
}

.info input {
  width: 50%;
  text-align: left;
}

.info label {
  width: 10%;
  min-width: 55px;
}

Hope this helps someone. Cheers.

2 Likes

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