I have a table in which I enter data from my database. The value in green is the result of the value in red, although the amount of values in red varies. So that the user at first sight can locate, I want to align the different types of data in the same row.
The result I want:
My plan was to put each type of data in a div tag with the same class. But what is the css command to align all the divs of the same class?
.test1{
display: inline-block;
}
<table class="tg" border="1">
<tr>
<td class="tg-yw4l"> <div class="test2">ValorTypo1<br />ValorTypo1<br />ValorTypo1</div> <div class="test1">ValorTypo2</div> </td>
<td class="tg-yw4l"> <div class="test2"></div> <div class="test1">ValorTypo2</div> </td>
<td class="tg-yw4l"> <div class="test2">ValorTypo1<br />ValorTypo1</div> <div class="test1">ValorTypo2</div> </td>
<td class="tg-yw4l"> <div class="test2">ValorTypo1<br />ValorTypo1</div> <div class="test1">ValorTypo2</div> </td>
</tr>
</table>