@charset "UTF-8"; .preview-container { display: flex; flex-wrap: wrap; gap: 10px; } .preview-item { position: relative; display: inline-block; } .preview-item img { max-width: 150px; max-height: 150px; border: 1px solid #ccc; padding: 5px; border-radius: 5px; } .preview-item .delete-btn { position: absolute; top: -5px; right: -5px; background: red; color: white; border: none; border-radius: 50%; cursor: pointer; width: 20px; height: 20px; font-size: 14px; line-height: 16px; }