CSS Constant

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
Anyone know if it's possible to use a constant within your style sheet ?

For example.

I am making use of a few items which I want to have the same background
color or start at the same point from the left margin. It would be useful to
define these values at the top of the sheet and refer to the constant name

var MyBGCol: #FFFFFF;

background-color MyBGCol;

background-color MyBGCol;

Is it possible ?



Re: CSS Constant

Chris Leonard said...

Quoted text here. Click to load it

use your favorite scripting language to stick the variable in at the
appropriate places. send file as text/css or just group all elements
in your css that share common css properties.


Site Timeline