title: CSS block elements with relative width?
body: <p>Here's what I'm trying to pull off...</p>
  
  <p><img src="https://i.stack.imgur.com/6kHm9.png" alt="enter image description here"></p>
  
  <p>And the corresponding HTML:</p>
  
  <pre><code>&lt;article&gt;
    &lt;h3&gt;Fading Forest&lt;/h3&gt;
    &lt;p&gt;Donec id elit non mi porta gravida at eget metus. Nullam quis risus eget urna mollis ornare vel eu leo. Nulla vitae elit libero, a pharetra augue. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus. Vestibulum id ligula porta felis euismod semper.&lt;/p&gt;
    &lt;p class="permalink"&gt;&lt;a href="http://example.com/12345" title=""&gt;example.com/12345&lt;/a&gt;&lt;/p&gt;
  &lt;/article&gt;
  </code></pre>
  
  <p>So what I need to do is wrap each <code>h3</code> and <code>p</code> in a box, but right now, since the <code>h3</code> and <code>p</code> tags are block level elements, the corresponding blocks just extend the full width.</p>
  
  <p>I want the width to adjust according to the content (and just apply <code>max-width</code> so they don't extend too wide).</p>
  
  <p>This is what I've got so far, though it doesn't work...obviously. <a href="http://jsfiddle.net/hAtRs/" rel="nofollow noreferrer">http://jsfiddle.net/hAtRs/</a></p>