I need help with creating a span css selector with class of years as in this example

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.

 <div id="years" aria-hidden="true">
          <span class="year">2019</span>
          <span class="year">2020</span>
          <span class="year">2021</span>
        </div>

i am to use the span[class] syntax to create a css selector to style the text in the #years element.

 span[class="years"] {
  font-weight: bold;
  width: 4.5rem;
  text-align: right;
 }

This is what i could come out with and all efforts don't seem to work. 
Kindly help.

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.61 Safari/537.36

Challenge: Step 43

Link to the challenge:

Hello there.

Do you have a question?

If so, please edit your post to include it in the Tell us what’s happening section.

Learning to describe problems is hard, but it is an important part of learning how to code.

Also, the more information you give us, the more likely we are to be able to help.

post edited, thanks. I hope it helps you to help me out.

Solution found. Thank you.

#years span[class] {
font-weight: bold;
width: 4.5rem;
text-align: right;
}

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