.container { width: 100%; padding: 10px; box-sizing: border-box; margin-top: 50px; } .profileboard { width: 100%; padding: 15px; border-radius: 10px; box-sizing: border-box; margin-top: 3%; position: relative; } .mainContent { display: flex; flex-direction: row; justify-content: space-between; align-items: flex-start; width: 100%; } .basicInfo { flex: 1; } .expandedContent { display: flex; flex-direction: row; align-items: flex-start; width: 100%; } .profilePictureContainer { width: 120px; height: 120px; margin-right: 20px; } .profilePicture { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; } .textInfo { display: flex; flex-direction: column; flex: 1; } .contactInfo { margin-top: 10px; } .contactInfo p { margin: 5px 0; } .expandButton { width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; cursor: pointer; background: transparent; border: none; font-size: 16px; margin-left: 10px; position: absolute; top: 10px; right: 10px; } .voirPlus { position: absolute; bottom: 10px; right: 10px; color: #007bff; text-decoration: none; font-weight: bold; cursor: pointer; } .voirPlus:hover { text-decoration: underline; } @media screen and (min-width: 768px) { .profilePictureContainer { width: 150px; height: 150px; } .voirPlus{ text-align: right; } } @media screen and (min-width: 1024px) { .container { max-width: 1200px; margin: 0 auto; padding: 20px; margin-top:50px; margin-bottom: 50px; } .profileboard { padding: 25px; } .profilePictureContainer { width: 200px; height: auto; } }