If you know the css that you would like to apply then you need to determine what condition to set this styling. You can use php code to set it for you like this:
<?php echo (<if your condition is true>)?"style='<your css here>;'":"" ?>
This says, if the condition is true, print the style info, otherwise print nothing. You just need to determine what the condition is and the style you wan to apply.