.ImgList{ width: 100%; display: flex; flex-flow: row wrap; .fileItem{ margin-right: 2%; .imgFile{ padding: 10px; width: 100%; height: 100%; } } }