Hello I’d like to understand why on the lesson below (link) the width property applied to the .smaller-image class changes the image size too? I would have assume that in order to affect the height we would have to include a height property?
The default value of both the height and width in CSS is auto, which means it will adjust accordingly to fit the content (in this case, the image). The image will not break scaling unless you specify both the height and width.