.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
Hadiza Mohammed -
Pranav Bakare -
Sandy Galabada -
Vaibhav Dwivedi -
Top comments (0)