When I enclose within span or div a string that happens to be an empty string or includes only white spaces, that part does not have any height, and wh
span
div
Your code isn't right: you don’t need enclosing quotes ("") around values in CSS.
Either use:
min-height: 1em; /* I am not sure if one can use em with height properties */
Or use:
min-height: 12px;