CSS question
CSS question
Out of context: Reply #7
- Started
- Last post
- 7 Responses
- welded0
Going one step further, you could use a PHP (or similar) file as your stylesheet and therefor gain the ability to use variables throughout.
<?php
$bg_colour = '#f00';
?>.myDiv {
background-color: <?php echo $bg_colour; ?>
width: 100px;
height: 100px;
margin: 0px;
padding: 0px;
float: left;
}Not terribly beneficial in this example, but it's another way to go. :)