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

Problem 56
Using the same selector syntax, target the th elements within your table rows where the class is total . Align the text to the left, and give them a padding of 0.5rem 0 0.25rem 0.5rem .

My Code so far

tr[class="total"] th {
  text-align: left; 
  padding: 0.5rem 0 0.25rem 0.5rem;
 }

WARNING
My code above is not working what am I doing wrong? I looked videos up online and litterally copy and pasted the correct solution and it doesn’t go through?? Can you tell me what Im doing wrong.

Nvm i figured it out the code above is correct. Sometimes you have to reset and refresh the page. Or close ur browser and reload it all over again. Thats what i did retyped the code and it went through.

2 Likes

Please include a link to the Step in your post.

With these steps it can be pretty common to accidentally make other changes, like deleting the } from the last CSS rule.

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