I tried centering my h1 in the body tag like this:
h1 {margin:0 auto}
But it doesn't center. How do I fix it?
In this case:
h1 {
text-align:center;
}
The margin:auto rule is used when you set a width on the element, which you haven't done.