body { font-family: sans-serif; text-align: center; h1 { color: red; } } button { color: blue; position: relative; width: 25px; height: 25px; top: 10px; } .image-container { display: flex; flex-wrap: wrap; } .single-container { width: 682px; height: 394px; } .image { width: 672px; height: 384px; background-size: cover; border: solid 0px lightgrey; display: flex; transition: width 0.1s linear; } .image:hover { width: 680; }