.logo { width: 150px; height: 30px; } .header_link{ text-align: center; line-height: 2; color: white; text-decoration: none; } .loginn { background-color: skyblue; border-radius: 31px; border: 1px solid skyblue; cursor: pointer; color: #ffffff; font-family: Arial; text-decoration: none; height: 30px; } header { display: flex; flex-flow: row wrap; align-items: center; justify-content: space-between; background-color: #0f64f2; margin: auto; padding-top: 10px; padding-bottom: 10px; padding-right: 30px; padding-left: 10px; } header>p { text-align: center; line-height: 0; } @media all and (max-width: 800px) { header { justify-content: space-around; } } @media all and (max-width: 800px) { header { flex-direction: column; } }