Forum Moderators: not2easy

Message Too Old, No Replies

CSS With Variables?

         

Spelunker

5:20 pm on Jun 10, 2005 (gmt 0)

10+ Year Member



My question is if in some property example background-color i can use a varible for change in diferent pages the background without make other style

createErrorMsg

5:24 pm on Jun 10, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Afraid not. CSS doesn't take variables. There are ways to set up your server and CSS files to serve your CSS through the PHP engine. If you do that, you can use PHP variables. But CSS on it's own can't do it.

cEM

Spelunker

5:41 pm on Jun 10, 2005 (gmt 0)

10+ Year Member



Thanks