Welcome Guest, Not a member yet? Register   Sign In
Using Dynamic CSS
#1

[eluser]maffo[/eluser]
Does anybody on this board use a dynamic CSS file?

What I mean is, the values of items can be variables.

Code:
div.content{
background-color: #<?=$divContentBgCol;?>;
color:   #<?=$divContentTxtCol;?>;
}

This is just a rough example, but I have implemented it into one of my sites (partially) and it works a treat.

My question really is about performance. With this system you need to save you css within a php file and not as a css file.

Is there a downside to this? Will performance lack? How about caching etc?

Just looking for other peoples opinions


Messages In This Thread
Using Dynamic CSS - by El Forum - 10-06-2007, 08:17 PM
Using Dynamic CSS - by El Forum - 10-06-2007, 09:00 PM
Using Dynamic CSS - by El Forum - 10-06-2007, 11:27 PM
Using Dynamic CSS - by El Forum - 10-07-2007, 07:46 AM
Using Dynamic CSS - by El Forum - 10-07-2007, 12:09 PM
Using Dynamic CSS - by El Forum - 10-07-2007, 03:37 PM
Using Dynamic CSS - by El Forum - 10-07-2007, 04:42 PM
Using Dynamic CSS - by El Forum - 10-07-2007, 05:21 PM
Using Dynamic CSS - by El Forum - 10-07-2007, 06:24 PM
Using Dynamic CSS - by El Forum - 10-07-2007, 06:27 PM
Using Dynamic CSS - by El Forum - 10-07-2007, 08:34 PM
Using Dynamic CSS - by El Forum - 10-08-2007, 05:13 AM
Using Dynamic CSS - by El Forum - 10-08-2007, 07:22 AM
Using Dynamic CSS - by El Forum - 10-08-2007, 07:41 AM
Using Dynamic CSS - by El Forum - 10-08-2007, 08:52 AM
Using Dynamic CSS - by El Forum - 10-08-2007, 09:00 AM
Using Dynamic CSS - by El Forum - 10-08-2007, 09:12 AM
Using Dynamic CSS - by El Forum - 10-08-2007, 09:29 AM



Theme © iAndrew 2016 - Forum software by © MyBB