Hello,
Is it possible to put PHP variable inside CSS file (style.css)?
If I'll change the style.css name to style.php, will the browser be able to read it as a style file?
Thank you in advance,
Roi
PHP variable inside CSS file
Moderator: General Moderators
Re: PHP variable inside CSS file
or you could have the style in the html (included from another file) and have all the php you want to form that
<head>
<style>
<?php include("style.php"); ?>
</style>
</head>
<body>
...
<head>
<style>
<?php include("style.php"); ?>
</style>
</head>
<body>
...
Re: PHP variable inside CSS file
Thank you both!