I am working on a for loop that will populate a table, similar to the diagram below:
https://i.sstatic.net/xbZ8u.png
Age is displayed in the first row as a header, followed by three rows with three columns each. The first row contains images, the second shows a horizontal line (not an actual row but could be the bottom border of the previous row), and the third row displays a numeric scale: 18-29, 30-50, 50+.
This is my HTML code:
<table>
<tr>
<td>Age</td>
</tr>
<tr *ngFor="let age of age_range">
<td>{{age}}</td>
</tr>
</table>
And this is the CSS I have so far:
table , tr {
border-bottom: 1px solid;
}
How can I adjust the CSS to make it look like the diagram? Currently, it appears like this: