flex
can help to space out images inline-block elements.
1 2 3 4 5 6 7 8 9 10 11 12 |
.grid { display:flex; flex-wrap: wrap; justify-content: center; } .item { margin: 5px auto; display:inline-block; padding:10px; border: 2px solid green; } |