Currently, I am working on designing a responsive layout for a 3D globe. The code snippet that stores the structure is as follows:
<div class="text-center main">
<canvas id='globe' width='100%' height='100%'></canvas>
</div>
Initially, when setting fixed dimensions of 700px, the globe displays perfectly on my screen. However, to ensure responsiveness on mobile devices, I need it to adjust accordingly without breaking. It's intriguing how specifying a percentage value of 100% resulted in a smaller size compared to 500px. Increasing the percentage further to around 200 or 300% seemed to resolve the issue. Can anyone shed light on why this occurs?