.profile{ font-family: "Lucida Grande", sans-serif; height: 100%; background: rgb(233,235,238); } .cover-image{ position:absolute; } .profile-sec{ margin: 0 auto; max-width: 980px; padding-top: 40px; } .coverphoto{ max-width: 980px; height:350px; object-fit: cover; z-index: -3; } .gaurd{ position: absolute; margin-top: -325px; margin-left: 20px; color: white; } .coverupload{ visibility: hidden; } .gaurd:hover .coverupload{ visibility: visible; box-shadow: 0 0 0 1px #fff inset; border-radius: 3px; opacity: .7; margin-top: -20px; margin-left: 20px; cursor: pointer; background: black; } input[type="file"]{ display:none; } .cover-text{ color:#fff; font-family: "Lucida Grande", sans-serif; font-size: 15; padding:2px; border-radius: 2px; } .div-ul { background-color: #fff; margin-left: 0px; max-width: 980px; height:50px; } .timeline-ul{ display: flex; justify-content: flex-start; margin-left: 166px; border-radius: 5px; max-width: 980px; } .timeline-ul > div{ max-width:50px; border-right: solid 1px #ccc; padding: 15px; padding-right: 50px; padding-left: 50px; font-weight: 900; font-size: 12px; color: #3b5998; } .addfriend button { position: absolute; height: 28px; width: 105px; border: solid 1px #fff; text-align: center; border-radius: 2px; background: #f6f7f9; border: solid 1px #7b7b7c; color: #4a4f55; font-size: 12px; font-weight: bold; padding: 5px 0px; box-sizing: border-box; top:275px; left:800px; } .profile-name{ display: flex; margin-top: -120px; margin-left: 40px; } .profile-name h1{ color: white; padding:5px; font-size: 24px; letter-spacing: 1px; font-weight: 300; text-shadow: 3px 3px 10px #23355b; } .profile_image{ position: relative; height: 167px; width: 167px; margin-top: -200px; margin-left: 50px; border: solid 3px #fff; border-radius: 0px 0px 3px 3px; background-position: -20px -40px; box-shadow: 1px 1px 1px #23355b; overflow: hidden; cursor: pointer; object-fit: cover; } #profile-upload{ display: none; position:relative; margin-top: -60px; margin-left: 52px; height: 58px; width: 168px; background-color: black; opacity: 0.7; z-index: 15; font-weight: 600px !important; color: white; } .fff:hover #profile-upload{ display: block; } input[type="file"]{ display:none; } .button-text{ color:white; font-family: "Lucida Grande", sans-serif; font-size: 10px; color: white; margin-left: 25px; margin-top: 10px; padding:2px; bottom:22px; // width:120px; z-index: 12px; font-weight: 600px; position: absolute; border-radius: 2px; border: 1px solid white; } .intro{ width: 450px; box-sizing: border-box; background: #fff; border-radius: 3px; border: solid 1px #ddd; margin-top: 15px; padding: 15px; font-size: 12px; margin-right: 15px; } .intro > h2 > section{ margin-right:5px; } .intro h2{ display:inline-flex; justify-content: space-between; font-family: "Lucida Grande", sans-serif; font-size: 20px; padding:5px; } .friends-page{ width: 450px; box-sizing: border-box; background: #fff; border-radius: 3px; border: solid 1px #ddd; margin-top: 15px; padding: 15px; font-size: 12px; margin-right: 15px; } .did-add{ margin-top: 5px; margin-left:15px; color: #616770; font-size: 12px; font-weight: 600; line-height: 13px; } .add-text{ margin-right: 2px; margin-left: 2px; font-weight: 500; color: #315796; display: flex; width: 100%; } .p-div{ display: flex; } .sub-div{ position: absolute; margin-top: 400px; } .pst-div{ display: flex; max-width: 980px !important; }