title: Centering the text inside the `p tag`
body: <p>Centering the text inside the <code>p tag</code>.</p>
  
  <p>Below is the <code>code</code> which works perfectly when centring the text inside a <code>paragraph</code> tag. 
  Can anyone explain me how does this work?.</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;head&gt;
  &lt;style&gt;
  p.pos_fixed {
      position: fixed;
      top: 0;
      right: 0;
      left: 0;
      padding: 1em 0;
      margin: 0;
      text-align:center;
      color: red;
  }
  &lt;/style&gt;
  &lt;/head&gt;
  &lt;body&gt;
  &lt;p class="pos_fixed"&gt;Some positioned text.&lt;/p&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>I am not really understanding on what makes the <code>text center</code>?. <strong>I am not really understanding the trick here which makes the text center</strong>.</p>
  
  <p><strong>Update:</strong></p>
  
  <p>Removing <code>top: 0;right: 0;left: 0;</code> does not <code>center</code> align. My question was how does it center?.</p>
  
  <p><a href="http://codepen.io/anon/pen/cvaJk" rel="nofollow">http://codepen.io/anon/pen/cvaJk</a></p>
  
  <p>How does it all combine to make it center aling?.</p>