What are some best practices for preventing automatic vertical centering of table content when resizing in PHP?

When resizing a table in PHP, one common issue is automatic vertical centering of table content. To prevent this, you can set the vertical alignment of table cells to "top" using CSS. This will ensure that the content stays at the top of each cell when the table is resized.

echo "<style>";
echo "table {";
echo "   table-layout: fixed;";
echo "}";
echo "td {";
echo "   vertical-align: top;";
echo "}";
echo "</style>";