I have to fit all the images on a screen with every screen resolution.
Which should i use $(window) or $(document) to measure height /width to auto fit images.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If there is no fixed height for all the images, then use
In case the height is fixed for all the images you are loading, then do not wait for the images to be loaded, just assign fixed height to
<img>tags and fit them. Use