reset password
Author Message
avilla82
Posts: 3
Posted 08:03 Oct 28, 2015 |

For the Halloween 5 lab, we are supposed to center the page and I used the margin:auto function to attempt to center it. my content wouldn't shift over, after checking with the dev tool, I found out that the margin from normalize.css file overrides the margin  in my main.css. Any way I could negate  just that line from normalize so it can be centered?

4542elgh
Posts: 71
Posted 23:12 Nov 06, 2015 |

maybe kinda late, but you need to set a width for your header before doing margin:auto; without setting a width for your header, the header wont be centered,

as far as the normalize go, you should put the normalize.css above the style.css in HTML file(<head> in specific) so you can load up your normalize css first, then do all the changes to over write your normalize