Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > CSS Constant

Reply
Thread Tools

CSS Constant

 
 
Chris Leonard
Guest
Posts: n/a
 
      09-20-2003
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
below.

var MyBGCol: #FFFFFF;

body
{
background-color MyBGCol;
}

li
{
background-color MyBGCol;
}

Is it possible ?

TIA

Chris


 
Reply With Quote
 
 
 
 
brucie
Guest
Posts: n/a
 
      09-20-2003
In post <bkhsh4$51b$>
Chris Leonard said...

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


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.

p,#blah,.blah{color:red;}
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
"error C2057: expected constant expression", "error C2466: cannot allocate an array of constant size 0". Why doesn't my simple program work??? hn.ft.pris@gmail.com C++ 13 01-22-2007 02:03 PM
pointers to constant characters and constant pointers to characters sam_cit@yahoo.co.in C Programming 4 12-14-2006 11:10 PM
len(var) is [CONSTANT] equal to len(var) == [CONSTANT]? Tor Erik Soenvisen Python 14 11-23-2006 09:57 PM
"Non-constant" constant can't be used as template argument Martin Magnusson C++ 2 10-08-2004 08:41 AM
Understanding How To Use #ifdef Constant #define Constant Sequence In Multible Files Christopher M. Lusardi C++ 1 09-02-2004 07:43 AM



Advertisments