Learn Accessibility by Building a Quiz - Step 56

Tell us what’s happening:

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.

Where am I supposed to add the "text-align: right;"?

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

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

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

Your browser information:

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

Challenge: Learn Accessibility by Building a Quiz - Step 56

Link to the challenge:

The challenge wants you to align the text to the right for both the input and label, so you can put it with the code for display. And you can also remove text-align: left; from the input style.

I’m not entirely sure why this is but the challenge is passed when you put your code above .input input and .input label.

BONUS: You can sometimes omit using the > selector when selecting all of a type of element within a parent.

Hope this helps!! :+1:

Hey brajeshpatel, thank you so much. Your suggestion helped.

I had thought about that previously, but didn’t think it was necessary.

Thank you so much.

Hello there , building a quiz step 48 am stack kindly help

please start a new topic and dont forget to post the challenge link with your topic

Put it at the top like this

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

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

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

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