Using Drupal variables in CSS?
You can apply css styles from php. Use the drupal_add_css() function 

&lt;?php
drupal_add_css('#banner { background: url("../images/banner.jpg") no-repeat fixed }',$option['type'] = 'inline');
?&gt;