Tutorial :Making resizable image backgrounds with HTML, CSS, and Javascript



Question:

I'm trying to create an image object or canvas object that will resize based on the window dimensions, but keep the aspect ratio. Is this possible?

I know that with canvas, you can maintain bicubic scaling, but is it possible to have the image scale on the window resize while maintaining the aspect ratio?


Solution:1

You might want to give this a shot:

http://css-tricks.com/how-to-resizeable-background-image/


Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Previous
Next Post »