Home ›
Using CSS to proportionally scale an image with a width and height set in sourceUsing CSS to proportionally scale an image with a width and height set in source
Submitted by Benjamin Melançon on August 28, 2017 - 4:20pm
So far all i have is links to many wrong directions that seem to require throwing more HTML code around the image:
http://stackoverflow.com/questions/12070759/make-absolute-positioned-div-expand-parent-div-height
http://stackoverflow.com/questions/22039845/scale-and-position-div-relative-to-image-with-100-height
http://stackoverflow.com/questions/211383/what-methods-of-clearfix-can-i-use
Searched words:
scale div height with absolutely positioned image
proportionally scale a div CSS
fake image for size proportion
Comments
Post new comment