Twitter Facebook Google+ LinkedIn Pinterest Tumblr Reddit
Question

How can I give space for empty table in html?

Tags: bootsrap html
Date:
Status:Resolved
Question Id:13

This is my table. Also I use bootsrap. I cant give spaces table. When the table is empty, the table looks bad. Table need to spaces. I try to add style="height:500px;" inside <table> tag. But it is not work.

<table class="table table-sm">

       <thead class="thead-dark">

             <tr>
                           <th scope="col">...</th>
                            <th scope="col">...</th>
                            <th scope="col">Ad</th>
                            <th scope="col">Soyad</th>
             </tr>
       </thead>
       <tbody>
              <tr>...</tr> 
       </tbody>
</table>
Answer
Date:
Correct:No

Maybe you can try this https://www.w3schools.com/cssref/pr_tab_empty-cells.asp

table {
  empty-cells: hide;
}
empty-cells: show|hide|initial|inherit;

 

Answer
Date:
Correct:No

You was wrong. You should add  your style inside <tr> tag.

Answer
Date:
Correct:Yes

it must be like this:

<tr style="height:500px ;">
 <td>
 </td>
</tr> 

Your Answer

Review Your Answer