Welcome Guest, Not a member yet? Register   Sign In
Dynamic CSS - Common approach for code-igniter?
#3

[eluser]Mirage[/eluser]
You certainly can just make your CSS file a view and inject PHP that way.

I'd say it all depends on what and how much you want to make dynamic. An alternate approach might be to override default/static css rules by injecting them into a page header or inline.

For the language example I usually define css for each language - overriding rules in the default css and inject which language to load right into the page header:

Code:
<link rel="stylesheet" type="text/css" href="/css/default.css">
<link rel="stylesheet" type="text/css" href="/css/<?=$lc ?>.css">

HTH,
m


Messages In This Thread
Dynamic CSS - Common approach for code-igniter? - by El Forum - 08-01-2008, 01:41 AM
Dynamic CSS - Common approach for code-igniter? - by El Forum - 08-01-2008, 08:47 AM
Dynamic CSS - Common approach for code-igniter? - by El Forum - 08-02-2008, 09:07 AM
Dynamic CSS - Common approach for code-igniter? - by El Forum - 08-02-2008, 10:33 AM



Theme © iAndrew 2016 - Forum software by © MyBB