Link to home
Start Free TrialLog in
Avatar of matiascx
matiascxFlag for China

asked on

how to force table has a min-height even if no tr in the tbody?

Hi, experts,
I have a requirement of css layout:
Even if no table data, we must make sure the table at least occupy some height place.
How to let that happen?
I have created one plunker, any help is appreciated, thanks!
<!DOCTYPE html>

    <link rel="stylesheet" href="style.css">
    <script src="script.js"></script>
        height: 100px;
        width:  100px;
        background: blue;
        height: 500px;
        background: red;

      <tbody class="nocontent">


Open in new window

Avatar of Russ Suter
Russ Suter

Link to home
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of matiascx


Exactly what i need.
Thank you~!