I'm trying out PureCSS for my website and it seemed like everything was going great. I opened it up in Firefox and noticed that my content wasn't centered.
The HTML/CSS is pretty simple. If I open the Inspector tool, I can see that my <div class="content pure-u-1 pure-u-md-3-5">
is rendered correctly at 60% width. If that's the case, then why isn't
.content {
margin: 0 auto;
}
centering my content in Firefox? Everything works fine in Chrome. It's been a while since I've done front-end stuff, but after some quick searches I see people still recommending margin: 0 auto;
for centering, so I figure this has something to do with the grid framework? I also have everything set to box-sizing: border-box;
.