Home › Forums › CSS › Centering, layering and rotating (animating) img’s › Reply To: Centering, layering and rotating (animating) img’s
December 4, 2017 at 11:05 am
#263335
Paulie_D
Member
Firstly, margin:auto
has no centering effect on absolutely positioned elements.
Secondly, the h1
IS centered but as it’s block level it’s 100% wide.
What you need to do is center the text IN the h1
…and text-align:center
will do that.