Accessibility quiz. Setting the css before another

Tell us what’s happening:
I can’t figure out how to set the .info input, .info label selector before the .info input selector priority wise. I tried putting ::before in the first selector, but I got an error for that.

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.

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

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

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

}

Your browser information:

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

Challenge: Step 56

Link to the challenge:

hiya,

I can see you have a couple of typos for your elements as no > are needed and the label is a .label

I don’t see any typos, but as @jasonburns502 pointed out, you added the > to .info input and .info label. Remove those and you should pass.

In general, you should not make any changes that the instructions don’t ask you to make because even the slightest change can cause you to fail the test since the test isn’t expecting it.

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