GobiasKoffi GobiasKoffi - 1 year ago 91
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 Source

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


Notice that only I is affected.

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

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download