Can I use a min-height for table, tr or td?

后端 未结 7 1137
Happy的楠姐
Happy的楠姐 2020-12-23 00:11

I am trying to show some details of a receive in a table.

I want that table to have a min height to show the products. So if there is only one product, the table wou

7条回答
  •  情书的邮戳
    2020-12-23 01:04

    The solution without div is used a pseudo element like ::after into first td in row with min-height. Save your HTML clean.

    table tr td:first-child::after {
       content: "";
       display: inline-block;
       vertical-align: top;
       min-height: 60px;
    }
    

提交回复
热议问题