Assessment wanted for tables skill test

Hi Guys,

I’m looking for some help. I’ve just completed the test for styling tables with CCS but struggled a little.

Firstly, I was hoping for some feedback on my use of the class attributes/selector to target column 2 and 3 for text-align. I feel like there might be a more suitable way to do this?

Secondly, I’m struggling to add a top border on the table foot. As you can see from my code (link below), I’ve made an attempt (tfoot {
border-top; solid grey 1px;
}) which I thought would work.

I’ve also linked to the MDN test below.

Code - https://codepen.io/JaredCave/pen/vYNrBeB

Thanks in advance!

Regards,

Jared

Hi @Jared_Cave, and welcome to the community.

Your code here is absolutely fine, except for a simple typo:

border-top; solid grey 1px;

should be

border-top: solid grey 1px;

You had a colon mistyped as a semi-colon.

Can’t believe I missed that!

Thanks Chris.