title: attr as property in css selector
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/8426882/css-selector-by-style-attribute">CSS selector by style attribute</a>  </p>
  </blockquote>
  
  
  
  <p>html:</p>
  
  <pre><code>&lt;div data-family='arial'&gt;&lt;/div&gt;
  </code></pre>
  
  <p>in css i want to use this family value. Example:</p>
  
  <pre><code>div{font-family: attr(data-family)}
  </code></pre>
  
  <p>Family can be any string.
  How make it work?</p>