2D array vs array of arrays

A 2 dimensional array is by definition an array of arrays. What Dave was saying is that in that context, there are different semantics between the definition of a 2D array like this: this: or this:

HTML img scaling

Only set the width or height, and it will scale the other automatically. And yes you can use a percentage. The first part can be done, but requires JavaScript, so might not work for all users.