.add1 { background: url(images/arrow-left.png) no-repeat center left; padding-left: 20px; float: left; line-height: 30px; font-size: 14px; } .ICSE_container { display: flex; justify-content: space-around; flex-wrap: wrap; /* makes it responsive */ gap: 88px; padding: 10px; } .box { flex: 1 1 300px; /* min width 300px, grows/shrinks */ max-width: 400px; } .box img { width: 100%; height: auto; display: block; }