title: detect inline background style with jQuery
body: <p>I have a <code>&lt;div&gt;</code> that on occasion has an inline <code>background</code> attribute applied to it.</p>
  
  <p>I would like to be able to check if there is an <em>inline</em> style attached to it, and if there is then I want to go ahead and attach a <code>background-position</code>.</p>
  
  <p>Is there a way that I can check explictly for inline backgrounds applied to <code>$(this)</code>?</p>
  
  <pre><code>if ($(this).css('background').length &gt; 0) { 
     console.log('has a background'); 
     // set a background position
     $(this).css('background-position', 'center 22px');
  }
  </code></pre>