css - Changing the size of a lot of different images with out affecting aspect ratio -


basically want whole bunch of images 1 under each other. these images different sizes , aspect ratios. want images maximum width , maximum height without changing aspect ratios of each image. how using html 5 , css3?

take parent block, example div class name main_div , add css

.main_div img {     width:100%;     height: auto; }  

Comments

Popular posts from this blog

iphone - Three second countdown in cocos2d -

hyperlink - how to do url routing in php -

c++ - CryptStringToBinary API behavior -