Height vs width

A post was split to a new topic: Please explain the difference between these two sets of code