Kênh Ảnh
[ Updated threads · New messages · Members · Forum rules · Search · RSS ]
  • Page 1 of 1
  • 1
Auto resize img to fit browser
Date: Chủ nhật, 24-01-2016, 1:29 PM | Message # 1
Below code will help!
Demo: http://adnet.moy.su/stuff/asian/hongkong/images_of_hongkong/2-1-0-2  

img { max-width: 100%; height: auto; width: auto\9; /* ie8 */ }
Date: Chủ nhật, 24-01-2016, 1:31 PM | Message # 2
If it does not work, try below for an alternative option:

img {
max-width: 100%;
height: auto;
width: auto; /* ie8 */
}
  • Page 1 of 1
  • 1
Search: