+ 1

How to make a content to display at center of a box from both vertical and horizontal

Like a letter at the center of mass of a square box

24th Jun 2020, 6:45 PM
Abhay
Abhay - avatar
1 Odpowiedź
0
display: flex; flex-direction: column; justify-content: center; align-content: center; make sure this styling goes for the div that is holding the text you want to center.
24th Jun 2020, 9:30 PM
moses
moses - avatar