Bug 101209 - resize image to fit in a div + keep ratio + centered horizontally and vertically + rounded corners
Summary: resize image to fit in a div + keep ratio + centered horizontally and vertica...
Status: UNCONFIRMED
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-11-05 05:30 PST by IwanUswak
Modified: 2012-11-05 10:26 PST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description IwanUswak 2012-11-05 05:30:41 PST
doesn't work with banner images
see here: http://jsfiddle.net/infoman/5fzET/5/
also see this related question on stackoverflow: http://stackoverflow.com/questions/13232247/resize-image-to-fit-in-a-div-keep-ratio-centered-horizontally-and-vertically