jeudi 13 août 2015

How do you have a background image (of container) fit the screen width-wide, but not get cut off height-wise?

Now I now that question sounded confusing so I'm going to try to explain it simply. I have an image I'd like to use in a jumbotron element on a html page. I'd like the image to take up ~95% of the page width wise while never cutting off the image. I'd also like to maintain the aspect ratio for the purpose of maximum image quality. The image is 3225x2656.

Thanks for your help! Appreciate it.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire