.container {
display: grid;
place-items: center;
}
It was pretty easy, right? In just two lines of code you can center an element both vertically and horizontally.
See you!
.container {
display: grid;
place-items: center;
}
It was pretty easy, right? In just two lines of code you can center an element both vertically and horizontally.
See you!
For further actions, you may consider blocking this person and/or reporting abuse
Michael Andreuzza -
Akshat Sharma -
Michael Andreuzza -
Furkan Gözükara -
Top comments (0)