I'm currently exploring ways to position the contents of a table cell at the top of the row.
<tr className="flex-1 items-center align-top">
<td className=" py-1 pl-1 pr-1 text-sm sm:pl-6">
<div className="flex-1 items-center align-top">
<div className="flex-1 items-center align-top">
<p className="flex-1 items-center align-top">
title
</p>
<p className="flex-1 align-top">
short multi line sentence about one third the length of the sentence in the next column, I want both cells to align to the top.
</p>
</div>
</div>
</td>
I came across this informative article that suggests using items-center
in the flex class for vertical alignment, but it's still rendering at the center.
The following column has double the data, causing its content to be vertically centered. My goal is to have it aligned with the top of the row.
Any suggestions on how I can achieve this?