GobiasKoffi GobiasKoffi - 1 month ago 5
CSS Question

Different line height between neighboring cells of table

Suppose I have a table with one row, and two columns. I want to have single-spacing in the left cell, and I want double spacing in the right cell. Line-height appears to affect both cells in the row. What can I do to make it work?

Answer

Just apply it only to the td and not to the tr.

http://jsfiddle.net/77a3V/6/

Notice that only I is affected.

EDIT: Updated to illustrate css class instead of inline style.

Comments