# Help/Advice/Assessment wanted for tables skill test

**URL:** <https://discourse.mozilla.org/t/help-advice-assessment-wanted-for-tables-skill-test/93376>\
**Category:** Learn\
**Created:** [February 18, 2022, 5:31am UTC](https://discourse.mozilla.org/t/help-advice-assessment-wanted-for-tables-skill-test/93376 "2022-02-18T05:31:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Assad\_Newar](https://sea1.discourse-cdn.com/flex001/user_avatar/discourse.mozilla.org/assad_newar/32/55048_2.png) [@Assad\_Newar](https://discourse.mozilla.org/u/Assad_Newar)\
**Post date:** [February 18, 2022, 5:31am UTC](https://discourse.mozilla.org/t/help-advice-assessment-wanted-for-tables-skill-test/93376/1 "2022-02-18T05:31:20Z")

</div>

Just finished the tables skill test, was wondering if my css is up to the mark, if I could have done something more efficiently or if there is anything else that is expected of me in the test. I tried to keep it as simple as possible, per the guide. One thing that still has me perplexed is whether this part was efficient, I was trying to align all the numbers columns on the right side.

` 
tbody tr td:nth-child(2), tbody tr td:nth-child(3), thead tr th:nth-child(2), thead tr th:nth-child(3) {
    text-align:right;
}
`

Here is my entire work:  
[JSFiddle - Code Playground](https://jsfiddle.net/3agjyrpk/)

Here is the test page from MDN:  
[Test your skills: tables - Learn web development | MDN (mozilla.org)](https://developer.mozilla.org/en-US/docs/Learn/CSS/Building_blocks/Tables_tasks)

---

<div class="post-metadata">

**Author:** ![mikoMK](https://sea1.discourse-cdn.com/flex001/user_avatar/discourse.mozilla.org/mikomk/32/50456_2.png) [@mikoMK](https://discourse.mozilla.org/u/mikoMK)\
**Post date:** [February 21, 2022, 5:26am UTC](https://discourse.mozilla.org/t/help-advice-assessment-wanted-for-tables-skill-test/93376/2 "2022-02-21T05:26:29Z")

</div>

Hi @Assad_Newar and welcome to the community 👋

Congratulations, you did a great job! 🏅

> [@Assad\_Newar](#):
>
> One thing that still has me perplexed is whether this part was efficient

Pseudo-classes don’t need to be attached to a specific element. So this would do the same and is shorter:

```auto
tr :nth-child(2),
tr :nth-child(3) {
  text-align: right;
}

```

I hope that helps. Feel free to ask more questions. 🙂

Have a nice day,  
Michael

---

<div class="post-metadata">

**Author:** ![Assad\_Newar](https://sea1.discourse-cdn.com/flex001/user_avatar/discourse.mozilla.org/assad_newar/32/55048_2.png) [@Assad\_Newar](https://discourse.mozilla.org/u/Assad_Newar)\
**Post date:** [February 21, 2022, 6:02am UTC](https://discourse.mozilla.org/t/help-advice-assessment-wanted-for-tables-skill-test/93376/3 "2022-02-21T06:02:44Z")

</div>

Thanks mikoMK, I appreciate the feedback!
