Check out this code snippet:
<div id="main" style="border:1px solid red;">
<div id="child" style="background-color:#68c5e7; width:170px; margin:0 auto; font-size:30px; background-image:url(https://www.google.by/logos/2012/javelin-2012-sr.png); background-repeat : no-repeat;">
<span style="padding-left:116px;">9:58</span>
</div>
</div>
This code uses JavaScript to dynamically update the displayed time, which can change the length of the string. The challenge is to adjust the length of the #68c5e7 background color to match the combined length of the image and text.
If you change the time from 9:58 to 10:03, you'll notice that the background color doesn't adjust accordingly. Additionally, the image and text should always be centered within the main div container.