-1

How can we maintain flexibility of images in a given width, Example:I have a div width of 500px right now i have placed 4 images in that in future i will add 4 more images to same div the images should flexibly fit in that width

2 Answers2

0

Set the div width to width:auto; dont restrict it to 500px!

SHAKIR SHABBIR
  • 1,295
  • 1
  • 14
  • 25
0

You could look at this question make-css-div-width-equal-to-contents which could help you in the right direction.

Community
  • 1
  • 1
David 'the bald ginger'
  • 1,296
  • 3
  • 20
  • 38