Apologies for the lack of a clear title to describe my issue. My problem involves this snippet of code, where I am creating a label to show time to users.
<div class="content">
<div class="container">
<div class="card">
<div class="card-header" data-background-color="purple">
<h4 class="title"><h3 class="title"><span id="countdown" class="timer"></span></h3></h4>
</div>
</div>
</div>
</div>
The time is displayed within the span
element using JavaScript. However, upon initial page load or refresh, the label displaying time shrinks due to the empty span
tag. I need to find a solution to maintain the label's height regardless of content inside the span
tag. Can anyone assist me with resolving this issue? Apologies for any language errors in my explanation.