I am seeking to adjust the size of a div
based on the numerical value contained in another div
. For instance, if the number is 0, the div should have a width: 20px; height 0px;
, if it's 50, the div should be width: 20px; height 50px;
, and for 100, the div
should be width: 20px; height 100px;
.
Is there a way to achieve this using CSS or jQuery?
I hope my request is clear. Thank you.