@0xabdulkhaliq
Posted
Hello there π. Congratulations on successfully completing the challenge! π
- I have other recommendations regarding your code that I believe will be of great interest to you.
CSS π¨:
- Why don't you try
grid
layout forbody
element instead of usingflex
- You are using
Flexbox
which wants three lines to center the componet but if we useGrid
for layout then one line of code is minimized.
- For this demonstration we are using the css
Grid
to center the component
body {
display: grid;
place-items: center;
}
- Now your component has been properly centered with just 2 lines of code
.
I hope you find this helpful π Above all, the solution you submitted is great !
Happy coding!
Marked as helpful
@roma-nikolaichuk
Posted
@0xAbdulKhalid Yes, I know, thanks!