zurb/foundation — Issue #44: Image resize while keep the aspect ratio.
Author: milohuang
Created: 2011-10-29 13:05:51+00:00
State: open

I am working on a WordPress framework using Foundation (not the one from Drew), one problem that I noticed is the images won't auto adjust according to the aspect ratio. The scale works fine for images without height and width attributes, but for some WordPress users who have used WP for a long time, those attributes do exists. So I recommend add the auto adjust image height to the CSS of Foundation like below:

img { height: auto; }

This works fine with all images with or without height width attributes.