The problem is that I have two skinny boxes as in the code below. Both of them have a child paragraph. The first paragraph has some text in it, the second one does not. Again, the problem is that when text is gone any paragraph loses its height, I wanna keep that somehow.
I wanna keep the height of the second paragraph as if there was one line of text (the font-size is defined), how can I do that using CSS ?
.drunk-container {
display: flex;
}
.skinny-box {
height: 70px;
width: 300px;
outline: 1px solid blue;
padding: 10px;
box-sizing: border-box;
}
p {
font-size: 1.2rem;
color: green;
outline: 1px solid red;
}
<div class="drunk-container">
<div class="skinny-box">
<p>Some text ... </p>
</div>
<div class="skinny-box">
<p></p>
</div>
</div>