# Doubt in styling tables assessment

**URL:** <https://discourse.mozilla.org/t/doubt-in-styling-tables-assessment/66740>\
**Category:** Learn\
**Created:** [August 31, 2020, 9:32am UTC](https://discourse.mozilla.org/t/doubt-in-styling-tables-assessment/66740 "2020-08-31T09:32:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shashi\_Reddy](https://avatars.discourse-cdn.com/v4/letter/s/da6949/32.png) [@Shashi\_Reddy](https://discourse.mozilla.org/u/Shashi_Reddy)\
**Post date:** [August 31, 2020, 9:32am UTC](https://discourse.mozilla.org/t/doubt-in-styling-tables-assessment/66740/1 "2020-08-31T09:32:11Z")

</div>

In styling tables assessment,I have added below css but table border bottom is not complete.pfa

 ![styling_tables_assessment](https://us1.discourse-cdn.com/flex001/uploads/mozilla/original/3X/b/0/b0856c9d35884e2d1ee4e9506cdf40908df2f4e9.png)

> **[Test your skills: Tables - Learn web development | MDN](https://developer.mozilla.org/en-US/docs/Learn_web_development/Core/Styling_basics/Tables_tasks)**
>
> The aim of this skill test is to assess whether you understand how to style HTML tables in CSS.

table{  
border-top:1px solid;  
border-bottom:1px solid lightgrey;  
border-collapse:collapse;  
width:100%;  
table-layout:fixed;  
}  
th,td{  
padding-left:5px;  
}  
#col1{  
width:35%;  
vertical-align:top;  
text-align:left;  
}  
#col2{  
width:10%;  
text-align:right;  
}  
#col3{  
width:15%;  
text-align:right;

}  
#col4{  
width:45%;  
text-align:left;  
vertical-align:top;

}  
tbody tr:nth-child(odd){  
background-color:grey;  
}  
.foot{  
border-top:1px solid grey;  
width:100%;  
}  
tfoot th{  
text-align:right;  
}  
tbody tr th:nth-child(1){text-align:left}  
tbody tr td:nth-child(2){text-align:right}  
tbody tr td:nth-child(3){text-align:right}  
tbody tr td:nth-child(4){text-align:left}

---

<div class="post-metadata">

**Author:** ![justsomeone](https://sea1.discourse-cdn.com/flex001/user_avatar/discourse.mozilla.org/justsomeone/32/67787_2.png) [@justsomeone](https://discourse.mozilla.org/u/justsomeone)\
**Post date:** [August 31, 2020, 10:39am UTC](https://discourse.mozilla.org/t/doubt-in-styling-tables-assessment/66740/2 "2020-08-31T10:39:10Z")

</div>

Hello @Shashi_Reddy

you doing great is see a little type error on that line

```auto
.foot{
border-top:1px solid grey;
width:100%;
} 

```

the selector is tfoot not .foot 😉

hope that help and have a nice day 🙂
