+ 1

Stucked in CSS need help !

text is not alligned poperly in the div. here's my code:https://code.sololearn.com/WA18A6a13A7a

20th Apr 2021, 4:59 PM
Sarbjot Singh
Sarbjot Singh - avatar
2 Réponses
+ 2
i prefer to use flexbox you can change inline-block with flex, and make truly in center with align-items: center; and justify-content: center; https://code.sololearn.com/W213a4A14A18 hopefully answer
20th Apr 2021, 6:37 PM
Iqbal Nurkholis
Iqbal Nurkholis - avatar
+ 2
Consider looking at grid maybe for the layout? Might be easier to center them by having a grid of boxes
20th Apr 2021, 5:16 PM
Dexter Roderick
Dexter Roderick - avatar