How do I center an h1 in the body
In this case: jsFiddle example The margin:auto rule is used when you set a width on the element, which you haven’t done.
In this case: jsFiddle example The margin:auto rule is used when you set a width on the element, which you haven’t done.