concept

Table row height — CSS reference

A table row must accommodate its cell height requirements and content. A height declaration can establish a minimum rather than a hard clipping boundary; the other cells in the row share its height. Vertical alignment controls placement of cell content, not independent cell heights.

Formal Syntax & Structure

css syntaxcss
td { height: 60px; vertical-align: bottom; }

Working Example

Example Snippetcss
<!doctype html><html lang="en"><meta charset="utf-8"><title>Table row height</title><style>body{margin:0}#a{padding:8px;background:rgb(232,237,241);color:rgb(0,0,0);box-sizing:border-box}body{font:16px/20px sans-serif;background:white}#a{padding:0;background:transparent;margin:10px;color:black}table{border-spacing:0}td,th{padding:0}caption{padding:0}#x{height:60px;vertical-align:bottom}#y{height:20px}td{width:80px}</style><body><table id="a"><tr><td id="x">A</td><td id="y">B</td></tr><tr><td id="z">C</td><td>D</td></tr></table></body></html>
CSS Reference