Dafür hast du 2 Möglichkeiten.
Entweder du schreibst den CSS-Code inline in den header-Bereich, also quasi so:
<?php include (variables.php); ?>
...
<style type="text/css">
div#lala {
width: <?php echo $var_width; ?>
}
</style>
...
Oder du bindest eine .php-Datei als CSS-Datei ein, mittels header(). Also quasi so:
style.php
<?php
header("Content-type: text/css");
$var_width = '180px';
div#lala {
width: <?php echo $var_width; ?>
}
?>
Aufruf dann so:
<link rel="stylesheet" type="text/css" media="screen" href="style.php">
Wichtig ist nur der header()-Aufruf am Anfang der style.php, damit die PHP-Datei als CSS geparsed wird. ![smile :)](https://forum.gameware.at/forum/wcf/images/smilies/emojione/263a.png)