could you try with a min-height: 1rem ? (change the number if necessary)

the problem is that an empty div has its height=0.