On this article, we are going to learn to make an empty div take house utilizing CSS.
Method: The answer is to offer some peak (or min-height) and width (or min-width) to your HTML div. While you set a selected peak and width for a div, it doesn’t matter whether it is empty or overflowed, it should solely take up the house as given within the code.
Instance: Within the following code, the empty house is achieved by giving a peak of 200px and a width of 400px.
HTML
|
Output: