Take a look at the code snippet below:
<div style="position: relative;">
<div style="position: absolute; left: 10px; top: 18px;">
<img id="ImgTachoMetre" src="/Images/u174_normal.png">
</div>
</div>
I have written the above code to position the div element in a specific location on the page.
However, upon testing it on different resolutions, I noticed that it becomes misaligned. Even when resizing the window, the alignment issue persists.
Searching online, I came across a similar question on CSS position: absolute screen resolution problem, but unfortunately, the provided solution did not work for me.
Can anyone suggest a way to resolve this issue?
Thank you.