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

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.

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

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

Link to the challenge:

Hi there and welcome to our community!

Your code was too long to be ported over automatically, so you’ll need to post it manually. You can use the Preformatted Text tool (</> icon or CTRL+e) to create two sets of triple backticks, between which you can paste your code, so that it displays correctly on the forum.

Here is the code that I’ve written, whats wrong with this?
tr.total td:nth-of-type(3) {
padding-right: 0.5rem;
}

When I try to check the code it says: You should have a tr.total td:nth-of-type(3) selector. What should I do?

There is nothing wrong with that code but there may be an issue elsewhere in your code. Perhaps you’re missing a closing curly bracket from a previous selector.
If you can post your full CSS code, we can hopefully see what the issue is.
Try using the Preformatted Text tool (</> or CTRL+e) to ensure that your code displays correctly on the forum.

You were right, I was missing the closing bracket. Thanks for your help.

1 Like

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