Home › Forums › CSS › I cant center the div › Reply To: I cant center the div
September 27, 2017 at 7:44 am
#260639
Paulie_D
Member
Elements with display:inline-block
act like text and are centered by applying text-align:center
to their parent element.
However, since you are using flexbox, the display property you are using is essentially ignored and centering of that would be achieved by applying justify-content:center
to the parent.