How to set table row height with CSS?

Spread the love

Sometimes, we want to set table row height with CSS.

In this article, we’ll look at how to set table row height with CSS.

How to set table row height with CSS?

To set table row height with CSS, we set the line-height of the rows.

For instance, we write

.topics tr {
  line-height: 14px;
}

to set the tr in the tables with class topics to have 14px line height.

Conclusion

To set table row height with CSS, we set the line-height of the rows.

Leave a Reply

Your email address will not be published. Required fields are marked *