- Impact
- 11
PHP inside CSS?
Hello,
Another PHP related question that is pretty much essential to my new projects development. Here it is:
Say i had a hex code (example #000000) stored in a PHP database, would it be possible to get the information from the database and use it in a CSS stylesheet to determine a part of the CSS example:
If this is possible, It would be so great.. I for some reason doubt that it is. If infact it is not possible, I would be very thankful to whoever can provide an alternative way to doing the same thing!
Thanks for reading!
Declan.
Hello,
Another PHP related question that is pretty much essential to my new projects development. Here it is:
Say i had a hex code (example #000000) stored in a PHP database, would it be possible to get the information from the database and use it in a CSS stylesheet to determine a part of the CSS example:
Code:
.header {
font-size: 11px;
font-family: Verdana;
font-weight: bold;
color: <? $variable->database_recovery_for_hex_color; ?>;
}
If this is possible, It would be so great.. I for some reason doubt that it is. If infact it is not possible, I would be very thankful to whoever can provide an alternative way to doing the same thing!
Thanks for reading!
Declan.