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

[eluser]Unknown[/eluser]
Just before I started using CodeIgniter I used [email=http://net.tutsplus.com/tutorials/html-css-techniques/how-to-add-variables-to-your-css-files/]this[/email] technique to use re-usable variables in my css files. It made adjusting colour schemes extremely easy. However since using CodeIgniter I haven't been able to use this technique.

Can anybody help me figure out how to get this to work with CodeIgniter?

EDIT:

This is the tutorial I was referring to:

http://css-tricks.com/css-variables-with-php/
#2

[eluser]Samus[/eluser]
If you want dynamic css, I suggest you look into LESS.

http://lesscss.org/

It's not a hack and it's easy to learn.
#3

[eluser]Matalina[/eluser]
what's not working with it? You can do it the same exact way you are now. Images are relative to your CSS file not your index.php so there is no need for CI only functions.




Theme © iAndrew 2016 - Forum software by © MyBB