Copy link to clipboard
Copied
Hi,
I want to align the logo to the middle of the header horizontally and vertically.
Q1.
Why doesn't the flexbox work?
.logo {
display: flex;
justify-content: center;
align-items: center;
}
Q2.
How do I do?
Link
Hosun Kang
Tittle was edited by Moderator
Instead of applying the styling to the .logo
.logo {
display: flex;
justify-content: center;
align-items: center;
}
apply it to the box containing the logo:
box1 {
display: flex;
justify-content: center;
align-items: center;
}
Copy link to clipboard
Copied
Instead of applying the styling to the .logo
.logo {
display: flex;
justify-content: center;
align-items: center;
}
apply it to the box containing the logo:
box1 {
display: flex;
justify-content: center;
align-items: center;
}