title: PHP <Style> change background color of div
body: <p>I have a variable with a score and I'm having php change the color of a div element based on this variable. This if statement is always resolving to True. Anyone see the flaw?</p>
  
  <pre><code>    &lt;style&gt;
          .poster{
            background-color:&lt;?php
              if($voteRating &gt; 80.0){
              echo "#2ecc71;";
              }
              else{
              echo "#f1c42c;";
              }
              ?&gt;
          }
          .year{
            color:;
          }
        &lt;/style&gt;
  </code></pre>