using javascript to calculate; how do I use transform:scale(w,h); to get this div to scale to fit its parent container?
I was in special math group at school so I'm not sure what I am googling (ratio, length comparison, proportion, fraction?) seen as we never learned that stuff (maybe for a day or two).
<div id="container"style="width:164px;height:164px:">
<div id="square_of_unknown_size"> I want to always fill my parent </div>
</div>
edit: btw, I don't want to use width/height:100% because I have an image inside the square that is fit like that so, i really need to zoom.
this seems to zoom inward to the microscopic level:
'-webkit-transform':'scale('+$('#container').width()+'.'+$('#square_of_unknown_size').width()+','+$('#container').height()+'.'+$('#square_of_unknown_size').height()+')'
px A compare B px get A.B = always fit