What I want to do is define some colours in one place, so I can just refer to them by name (like the presets red, blue etc) in multiple places.
I've done all the googling I can, and discovered that CSS doesn't have variables, but that it's possible to do with php. The php code that I found and modified looks like this:
PHP Code:
<?php
header("Content-type: text/css");
$PalCol1 = '#2660ff';
$PalCol2 = '#6db0e8';
$PalCol3 = '#daffff'
$PalCol4 = '#ffffff';
?>
Alternatively, is there a completely different way of achieving this that I've missed?
Cheers,
Cam.