Mu Solomon• 110
@Mu-Solomon
Submitted
Please, how can I center a div element both horizontal and vertical?
Looking to hire developers?
@Gabrielbe17
@Mu-Solomon
Submitted
Please, how can I center a div element both horizontal and vertical?
@Gabrielbe17
Posted
Hi Solomon, I suggest you to use grid.
display:grid;
, place-items:center;
to the grid container. In your case, the body
Tag.I also suggest you to add min-height:100vh;
To its container.
Marked as helpful
@medohb
Submitted
When Im trying to move to phone mode in my laptop the picture looks weird , any idea ?
@Gabrielbe17
Posted
Hi medo, I see your background image looks squished:
Marked as helpful