Can you assist me with this task? I have a white div where I need to place two circular green buttons on the borders. The entire layout should be created using CSS. Here is an example of how it should look: Screenshot
The challenge is that I do not know the size of the white div upfront, as it will be added to the DOM dynamically with a percentage-based width and height relative to its parent. This means that traditional methods like width(), height(), or accessing CSS values directly won't work during creation. I've come across solutions for fixed aspect ratios in divs, but they all rely on knowing one dimension to calculate the other. In my case, I only know the height (100%) and want the width to adapt accordingly. How can I achieve this?
Here is the code snippet I am working with:
LINK TO CODE SNIPPET
If you have any insights on achieving this without hardcoded values (and jQuery, if necessary), I would greatly appreciate your help. Thank you.