Come avevi scritto? Così dovrebbe funzionare:
codice:
<style type="text/css">
.grid {
color:#333333;
font-weight :bold;
margin-left :2%;
text-align :right ;
}
.footer {
/*background-color :#5D7B9D;*/
background-color :#E8F0F9;
font-weight :bold ;
color:#284775 ;
}
.row {
background-color :#F7F6F3;
color:#333333;
font-weight :normal ;
}
.alternatingrow {
background-color :White;
color:#284775;
font-weight :normal ;
}
.header{
background-color :#5D7B9D;
font-weight :bold ;
color:White ;
font-weight :bold ;
}
</style>
Ovviamente poi devi richiamare queste classi con <ELEMENTO class="NOMECLASSE">.
Se lo stile lo scrivi nel php ovviamente non funziona, devi metterlo in un echo del php.
Ti consiglio così:
Codice PHP:
<?php
// Qua le altre cose se ci sono
echo <<<EOT
<style type="text/css">
.grid {
color:#333333;
font-weight :bold;
margin-left :2%;
text-align :right ;
}
.footer {
/*background-color :#5D7B9D;*/
background-color :#E8F0F9;
font-weight :bold ;
color:#284775 ;
}
.row {
background-color :#F7F6F3;
color:#333333;
font-weight :normal ;
}
.alternatingrow {
background-color :White;
color:#284775;
font-weight :normal ;
}
.header{
background-color :#5D7B9D;
font-weight :bold ;
color:White ;
font-weight :bold ;
}
</style>
EOT;
// Il resto delle cose php
?>