Mark• 250
@markskwid
Posted
Hello, @NelsonMungai2003
To center the element inside a flexbox you can use align-items and justify-content:
body{
display: flex;
justify-content: center;
align-items: center;
}
Happy Coding!
1
What is the best way to center the container containing the QR code the heading and paragraph
@markskwid
Posted
Hello, @NelsonMungai2003
To center the element inside a flexbox you can use align-items and justify-content:
body{
display: flex;
justify-content: center;
align-items: center;
}
Happy Coding!
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord