What is the best practice to limit the maximum image width on the browser, with only HTML and CSS? I did a search on Google.com, and I didn’t find any good results. Thanks!
Also, I want to keep the proportion height ratio as well.
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.
Use
style="max-width:NNNpx"(ormax-height:NNNpx) (you can use%as a measurement as well – e.g.max-width:10%)