Why are borders causing div to overflow container?
<p>I have a section set to a fixed width and a 100% width div inside of it with a 5 pixel border.</p>

<p>Looks fine but you can tell the containing div is a bit off center and it wouldn't be without the border, which I need to match the client comp.</p>

<p>The code is rather straightforward:</p>

<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snippet-code">
<pre class="snippet-code-css lang-css prettyprint-override"><code>#info {
  max-width: 980px;
  margin: 0 auto;
}
.info-box {
  border: 5px solid #0033A0;
  display: inline-block;
  text-align: center;
  padding: 48px 0;
  width: 100%;
}</code></pre>
<pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;section id="info"&gt;
  &lt;div class="info-box"&gt;SOME CONTENT&lt;/div&gt;
&lt;/section&gt;</code></pre>
</div>
</div>
</p>

<p>The only thing I can think of is to make the width of the <code>.info-box</code> to be 98% or something like that, but that's still not going to truly work. So will anything?</p>

<p>BTW, I already tried adding relative positioning, set display to <code>inline</code> instead of <code>inline-block</code>....none of which worked.</p>