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

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -