Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Centering, layering and rotating (animating) img’s Reply To: Centering, layering and rotating (animating) img’s

#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.