daneden / Baseline.js

A simple jQuery plugin for restoring vertical baselines thrown off by odd image sizes
http://daneden.me/baseline
699 stars 55 forks source link

Preserve image width #15

Closed egasimus closed 11 years ago

egasimus commented 11 years ago

With modern browsers being quite good at scaling images, an option to preserve the width of images scaled by Baseline.js would be a welcome addition. There are cases where this is necessary, and this is seriously the only thing that's stopping me from using Baseline.js in all my projects. Anyone agree?

daneden commented 11 years ago

This issue should be resolved now. The plugin previously used max-height to scale images to fit to the baseline, but now uses margin-bottom to fit images to the baseline instead.