Text-align: right;

Tell us what’s happening:
ı’ve done all the text-align: right; . where is my fault?

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/103.0.0.0 Safari/537.36

Challenge: Step 56

Link to the challenge:

Please post your code of what you have tried so far.

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 (').

1 Like

This what is asked `Step 56
To align the input boxes with each other, set the display property to inline-block for all input and label elements within .info elements.

Also, align the text to the right.AND MY SOLUTİON:.info label, .info input {
display: inline-block;
text-align: right;
}`

AND THE RESPONSE OF ROBOT: Test

Sorry, your code does not pass. You’re getting there.

Hint

You should give the input and label elements a text-align of right.

where should ı use other text-align: right; properties?

this lesson step 56 and ı ve tried a few times

.info label, .info input {
  display: inline-block;
  text-align: right;
}
Step 56
To align the input boxes with each other, set the display property to inline-block for all input and label elements within .info elements.

Also, align the text to the right.

this what is asked. is

This is my answer

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

And where did you place your answer?

If you placed it below the existing code like this then that is incorrect.

This is wrong.

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

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

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

The hint is trying to tell you to place your answer above the other info selectors.

When I do that then it passes for me
Hope that helps!


You should set the text-align: right property before the .info input rule.

ı didn’t get it :frowning: ı think i did step by step

Please show your full code so I can see where you are placing your answer

when ı typed display: inline-block; inside the .info label and info input separately and then it asks me to type text-align: right; properties in other places .ı ve done it again and again

and ı ve merged .info iput, .info label selectors but it didn’t work either

You are not supposed to touch the existing code here

The lesson wants you to create a new .info label, .info input selector with the display and text align properties and place it above the existing code I just showed you.

When you do that, then the test will pass

1 Like

why doesn’t it work at the end?

Please post your full code so I can see what you have tried and understand why it is not working

1 Like

it has worked ı m so happy with your helps. but why doesn’t it work after the .info label and .info input selectors?

what is the difference before and after them?