#devs { display: flex; justify-content: center; align-items: center; flex-direction: column; } .profilsimg { width: 15vw; height: auto; border-radius: 15px; } .contactprofile{ margin-top: 2rem; margin-bottom: 2rem; border: solid purple 2px; border-radius: 15px; padding: 1px; } .contactprofile a { display: flex; width: 500px; } .contactprofile a p{ align-self: center; margin-left: 2rem; text-decoration: none; } @media screen and (max-width:1200px){ .profilsimg { width: 40vw; height: auto; border-radius: 15px; } .contactprofile a { flex-direction: column; align-items: center; padding-top: 1rem; } }