.imgbouton{ width: 350px; height: auto; } #makeachoicehf{ display: flex; flex-direction: row; justify-content: center; margin: auto; width: auto; padding-bottom: 30px ; gap: 1rem; } .tuile { border-radius: 10px; margin: 7px; height: auto; width: 350px; border: solid black 4px; background: rgb(255, 131, 131); transition : 0.3s ease-in-out; display:flex; flex-direction: column; justify-content:center; text-decoration: none; text-align: center; align-items: center; } .tuile:hover{ background-color: rgb(255, 255, 255); box-shadow: black ; } p{ color: black; }