title: Can I change the height of an image in CSS :before/:after pseudo-elements?
body: <p>Suppose I want to decorate links to certain file types using an image.  I could declare my links as</p>
  
  <pre><code>&lt;a href='foo.pdf' class='pdflink'&gt;A File!&lt;/a&gt;
  </code></pre>
  
  <p>then have CSS like</p>
  
  <pre><code>.pdflink:after { content: url('/images/pdf.png') }
  </code></pre>
  
  <p>Now, this works great, except if <code>pdf.png</code> isn't the right size for my link text.</p>
  
  <p>I'd like to be able to tell the browser to scale the <code>:after</code> image, but I can't for the life of me find the right syntax.  Or is this like background images, where resizing just isn't possible?</p>
  
  <p>ETA: I'm leaning towards either a) resizing the source image to be the "right" size, server-side and/or b) changing the markup to simply supply an IMG tag inline.  I was trying to avoid both those things but they sound like they'll be more compatible than trying to do stuff purely with CSS.  The answer to my original question seems to be "you can <em>sort of</em> do it, sometimes".</p>