I guess you have your css code in a database & you want to render a php file as a CSS. If that is the case…
In your html page:
Then, within style.php file:
table {
margin: 8px;
}
th {
font-family: =$font_family?>;
font-size: =$font_size?>;
background: #666;
color: #FFF;
padding: 2px 6px;
border-collapse: separate;
border: =$border?> #000;
}
td {
font-family: =$font_family?>;
font-size: =$font_size?>;
border: =$border?> #DDD;
}
Have fun!
Cascading Style Sheets (CSS) is a style sheet language used for describing the presentation semantics (the look and formatting) of a document written in a markup language.
more info : http://en.wikipedia.org/wiki/Cascading_Style_Sheets
CSS is not a programming language, and does not have the tools that come with a server side language like PHP. However, we can use Server-side languages to generate style sheets.
echo “
ID | hashtag |
---|---|
$row[0] | $row[1] |