@weldu0
Posted
π Hey, @MEHDI204! I have a few suggestions for your project:
1. You don't need to use position
for centering. Since you already have flexbox
set up correctly, just add min-height: 100vh;
to the body, and everything will be perfectly centered.
It should look like this:
body {
/* Your other code */
min-height: 100vh;
}
2. Since youβre already using flexbox
, you can remove any position
properties and use max-width
instead of width
. This will make your solution more responsive.
Hope you find this helpful! π
Marked as helpful