How to change the dimensions of a div depending of a number extern to that div? jquery/css <p>I want to change the dimensions of a <code>div</code> depending of wich number contain another <code>div</code>. For example if i have the number 0 the div has to be <code>width: 20px; height 0px;</code>, if i have the number 50 the div has to be <code>width: 20px; height 50px;</code>, if i have the number 100 the <code>div</code> has to be <code>width: 20px; height 100px;</code>.</p> <p>How can I do it in css or jquery?</p> <p>I hope you understand. Thank you.</p>