I want to create a html page that display a speedometer. So, I have a background image (the speedometer), and inside of it I have some buttons that are other images. Every button is made with an tag with the img inside:
<div id="speedometer">
<a href="button1"> <img id="img1" src="..."/></a>
<a href="button2"> <img id="img2" src="..."/></a>
<a href="button2"> <img id="img2" src="..."/></a>
</div
So, it's easy to style every element using fixed position, in order for every object to be positioned well.
But my purpose is to have a dynamically resizeable speedometer. So, the first thing I thought is to dynamically set the "speedometer" size to 100% of the width of the screen, and then to find the right percentage for the position of the three button inside. I think this should work, but I'm not sure if this is the best way to do that!
Since I'm not so skilled in html/css/javascript, I would like some suggestion on how to achieve this behaviour!
Thanks!