.header-component{ background-color: #B6E2C8; display: flex; justify-content: center; } .header-component img{ width: 310px; height: 200px; }