Learn More About CSS Pseudo Selectors By Building A Balance Sheet - Step 62

Tell us what’s happening:
I want to know about the space here :
th .description.

why it would not work if we write th.description, like we used to select a class selector.
Your code so far

tr.data th .description {
  display: block;
  font-style: italic;

 }

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

Challenge: Learn More About CSS Pseudo Selectors By Building A Balance Sheet - Step 62

Link to the challenge:

th .description 

this code will

target the elements with the class set to description that are within your th elements (quote from the instructions)

example would be:

<th> <span class=“description”>pick me</span></th>

however if you remove the space then you are targeting the elements that are th elements and have a description class.
example would be

<th class=“description”>pick me instead</th>

now I see a clear image. “withing your th elements”
that’s it.
much obliged.

1 Like