title: Is it possible to extend a h2 box in CSS depending on the text within it?
body: <p>I have a header box appearing on a page.</p>
  
  <p>I am using <code>h2</code> and configured this to show a border etc.</p>
  
  <p>My issue is that the longest text requires a <strong>box of 400px wide</strong>, whereas the shortest is probably around <strong>100px</strong> leaving a large gap.</p>
  
  <p>Is there any way to control the width of the <code>h2</code> over and above setting a fixed width in <strong>css</strong>?</p>